Skip to content

Commit

Permalink
Update run.sh to deal with bad tags (#24)
Browse files Browse the repository at this point in the history
* Update run.sh

Remove bad tag check as it's not required with the changes to the git tag listing
  • Loading branch information
XerockXMG authored Jan 25, 2024
1 parent dd99ba9 commit ba820b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,19 @@ git fetch --tags
# Do we want the testing version?
if [ "$TESTING" = "true" ]; then
# Get the latest Testing Git tag for the "dragonite-" prefix
latest_dragonite_tag=$(git tag --list 'dragonite-v*' | sort -V | tail -n 1)
latest_dragonite_tag=$(git tag --list| grep "dragonite-v[0-9]" | sort -V | tail -n 1)
# Get the latest Testing Git tag for the "admin-" prefix
latest_admin_tag=$(git tag --list 'admin-v*' | sort -V | tail -n 1)
latest_admin_tag=$(git tag --list | grep "admin-v[0-9]" | sort -V | tail -n 1)
elif [ ! -z $SHOW_TAGS ] && [ $SHOW_TAGS != "true" ]; then
# Attempt to get the requested Dragonite tag
latest_dragonite_tag="${SHOW_TAGS}"
# Attempt to get requested Admin tag
latest_admin_tag="${SHOW_TAGS}"
else
# Get the latest Production Git tag for the "dragonite-" prefix
latest_dragonite_tag=$(git tag --list 'dragonite-v*' | grep -v '\-testing' | sort -V | tail -n 1)
latest_dragonite_tag=$(git tag --list | grep "dragonite-v[0-9]" | grep -v '\-testing' | sort -V | tail -n 1)
# Get the latest Production Git tag for the "admin-" prefix
latest_admin_tag=$(git tag --list 'admin-v*' | grep -v '\-testing' | sort -V | tail -n 1)
latest_admin_tag=$(git tag --list | grep "admin-v[0-9]" | grep -v '\-testing' | sort -V | tail -n 1)
fi

download_latest_release() {
Expand Down

0 comments on commit ba820b4

Please sign in to comment.