Skip to content

Commit

Permalink
Add minor version requirement deploy script >= Bash 4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
rayjanoka committed Feb 3, 2022
1 parent 0030852 commit 81f9cb6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions deploy_autotag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -489,8 +489,8 @@ function command_exists () {

function check-min-dependencies () {

if [ "${BASH_VERSINFO[0]}" -lt "$MIN_BASH_VERSION" ] ; then
echo "Bash version $BASH_VERSION is unsupported, Bash must be at version $MIN_BASH_VERSION or greater."
if [ "${BASH_VERSINFO[0]}" -lt "$MIN_BASH_VERSION" ] || [[ "${BASH_VERSINFO[0]}" -eq "$MIN_BASH_VERSION" && "${BASH_VERSINFO[1]}" -lt "$MIN_BASH_MINOR_VERSION" ]] ; then
echo "Bash version $BASH_VERSION is unsupported, Bash must be at version $MIN_BASH_VERSION.$MIN_BASH_MINOR_VERSION or greater."
exit 1
fi

Expand Down Expand Up @@ -743,6 +743,7 @@ EOF
fi

MIN_BASH_VERSION='4'
MIN_BASH_MINOR_VERSION='3'
REPO_NAME='GorillaStack/auto-tag'
MAIN_STACK_NAME='AutoTag'
COLLECTOR_STACK_NAME="${MAIN_STACK_NAME}-Collector"
Expand Down

0 comments on commit 81f9cb6

Please sign in to comment.