Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

Commit 81f9cb6

Browse files
committed
Add minor version requirement deploy script >= Bash 4.3
1 parent 0030852 commit 81f9cb6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

deploy_autotag.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,8 @@ function command_exists () {
489489

490490
function check-min-dependencies () {
491491

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

@@ -743,6 +743,7 @@ EOF
743743
fi
744744

745745
MIN_BASH_VERSION='4'
746+
MIN_BASH_MINOR_VERSION='3'
746747
REPO_NAME='GorillaStack/auto-tag'
747748
MAIN_STACK_NAME='AutoTag'
748749
COLLECTOR_STACK_NAME="${MAIN_STACK_NAME}-Collector"

0 commit comments

Comments
 (0)