We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b1de05 commit cc22348Copy full SHA for cc22348
all-projects.sh
@@ -37,8 +37,13 @@ repoSeq=(
37
38
###########################################################################################################################
39
if ((BASH_VERSINFO[0] < 4)); then
40
- echo "ERROR: bash 4.0 or newer is required"
41
- exit 1
+ OTHER_BASH='/opt/local/bin/bash'
+ if [[ -x "$OTHER_BASH" ]] && (( $("$OTHER_BASH" <<<'echo $BASH_VERSION'|sed 's/[.].*//') >= 4 )); then
42
+ echo "INFO: restarting with "$OTHER_BASH" because this bash is too old but that one is new enough."
43
+ exec "$OTHER_BASH" "$0" "$@"
44
+ fi
45
+ echo "ERROR: bash 4.0 or newer is required"
46
+ exit 1
47
fi
48
49
trap "onError" ERR
0 commit comments