Fix Travis test script to work with Bash 5
authorGavin Lewis <epylar@gmail.com>
Thu, 17 Oct 2019 14:27:17 +0000 (07:27 -0700)
committerGavin Lewis <epylar@gmail.com>
Thu, 17 Oct 2019 15:00:23 +0000 (08:00 -0700)
Bash 5 doesn't like periods in variable names so this commit
performs a substitution to double underscores to avoid them.

.travis_test.sh

index c4939dd..e9b48d4 100755 (executable)
@@ -35,7 +35,8 @@ if [ "${NO_SELF_HOST_PERF}" -a "${DO_SELF_HOST}" -a "${ACTION}" = "perf" ]; then
     exit 0
 fi
 
-mode_var=${MAL_IMPL:-${IMPL}}_MODE
+raw_mode_var=${MAL_IMPL:-${IMPL}}_MODE
+mode_var=${raw_mode_var/./__}
 mode_val=${!mode_var}
 
 MAKE="make ${mode_val:+${mode_var}=${mode_val}}"