Refactored update scripts; build for Jammy

This commit is contained in:
Marcel Kapfer 2022-07-20 16:09:17 +02:00
parent af56394f71
commit bab9e8476a
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09

View file

@ -1,11 +1,19 @@
#!/bin/sh #!/bin/bash
#
# This script intends to decrease the effort of updating the package. # This script intends to decrease the effort of updating the package.
PACKAGE="intellij-idea-ultimate" set -euo pipefail
DISTRIBUTION="impish"
# 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-ultimate"
DISTRIBUTION="jammy"
main() {
last_tag=$(git describe --abbrev=0 --tags) last_tag=$(git describe --abbrev=0 --tags)
old="${last_tag#?}" old="${last_tag#?}"
new="$1" new="$1"
@ -32,10 +40,4 @@ main() {
cd .. cd ..
rm -rf "$PACKAGE"_"$old"-* rm "$PACKAGE"_"$old"-*
# disabled until it is only called with an specific argument
# sudo dpkg -i "$PACKAGE"_"$new"-1_all.deb
}
main "$1"