From: drjaska Date: Thu, 18 May 2023 04:24:24 +0000 (+0300) Subject: sort git tags by version sort just in case X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=62f43a9886f5a71d2098cf8c184bd14ae425b220;p=xonotic%2Fxonotic-data.pk3dir.git sort git tags by version sort just in case --- diff --git a/qcsrc/tools/git-progs-pk3packer.sh b/qcsrc/tools/git-progs-pk3packer.sh index 67447d4b2..5223b7ecd 100755 --- a/qcsrc/tools/git-progs-pk3packer.sh +++ b/qcsrc/tools/git-progs-pk3packer.sh @@ -99,7 +99,7 @@ printf "%s\n" "$HASH" > progs.txt # find list of edited cfg files since last stable release # this doesn't handle deleted files and they will not be overridden. FIXME? -EDITEDCFGS="$(git diff --name-status -w "$(git tag | tail -n 1)" | grep "\.cfg$" | cut -d "$(printf '\t')" -f 2)" +EDITEDCFGS="$(git diff --name-status -w "$(git tag | sort -V | tail -n 1)" | grep "\.cfg$" | cut -d "$(printf '\t')" -f 2)" # try to include list of all changes in the package if [ "$BRANCH" = "headless" ]