Refactored update scripts; build for Jammy
This commit is contained in:
parent
7b337d8d0b
commit
987b1278ff
1 changed files with 31 additions and 29 deletions
|
@ -1,11 +1,19 @@
|
|||
#!/bin/sh
|
||||
|
||||
#!/bin/bash
|
||||
#
|
||||
# This script intends to decrease the effort of updating the package.
|
||||
|
||||
PACKAGE="intellij-idea-community"
|
||||
DISTRIBUTION="impish"
|
||||
set -euo pipefail
|
||||
|
||||
# Check if running Ubuntu
|
||||
grep -q Ubuntu /etc/issue
|
||||
if [[ $? != 0 ]]; then
|
||||
echo "System is not running Ubuntu. Cancelling build."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
PACKAGE="intellij-idea-community"
|
||||
DISTRIBUTION="jammy"
|
||||
|
||||
main() {
|
||||
last_tag=$(git describe --abbrev=0 --tags)
|
||||
old="${last_tag#?}"
|
||||
new="$1"
|
||||
|
@ -33,9 +41,3 @@ main() {
|
|||
cd ..
|
||||
|
||||
rm "$PACKAGE"_"$old"-*
|
||||
|
||||
# disabled until it is only called with an specific argument
|
||||
# sudo dpkg -i "$PACKAGE"_"$new"-1_all.deb
|
||||
}
|
||||
|
||||
main "$1"
|
||||
|
|
Loading…
Reference in a new issue