Update script: get latest version from git

This commit is contained in:
Marcel Kapfer 2020-03-29 13:25:35 +02:00
parent 48b4a53f78
commit c09fd499a0
2 changed files with 7 additions and 4 deletions

View file

@ -6,8 +6,9 @@ PACKAGE="intellij-idea-community"
DISTRIBUTION="disco"
main() {
old="$1"
new="$2"
last_tag=$(git describe --tags)
old="${last_tag#?}"
new="$1"
name="$(git config --get user.name)"
email="$(git config --get user.email)"
@ -36,4 +37,4 @@ main() {
# sudo dpkg -i "$PACKAGE"_"$new"-1_all.deb
}
main "$1" "$2"
main "$1"