Skip to content

Commit

Permalink
Fix the typo: check if STATUS is set correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeniy-antonyuk committed Dec 25, 2024
1 parent 04bd4ec commit bdcafb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install/OneClickInstall/install-Docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,7 @@ get_available_version () {

VERSION_REGEX='^[0-9]+\.[0-9]+(\.[0-9]+){0,2}$'
[ ${#TAGS_RESP[@]} -eq 1 ] && LATEST_TAG="${TAGS_RESP[0]}" || LATEST_TAG=$(printf "%s\n" "${TAGS_RESP[@]}" | grep -E "$VERSION_REGEX" | sort -V | tail -n 1)
LATEST_TAG=${LATEST_TAG:-${STATUS:+-$(printf "%s\n" "${TAGS_RESP[@]}" | sort -V | tail -n 1)}} #Fix for 4testing develop tags
LATEST_TAG=${LATEST_TAG:-${STATUS:+$(printf "%s\n" "${TAGS_RESP[@]}" | sort -V | tail -n 1)}} #Fix for 4testing develop tags

if [ ! -z "${LATEST_TAG}" ]; then
echo "${LATEST_TAG}" | sed "s/\"//g"
Expand Down

0 comments on commit bdcafb0

Please sign in to comment.