Skip to content

Commit

Permalink
Fixed demo script not compatible with Bash < 4.2
Browse files Browse the repository at this point in the history
My previous fix to this was incorrect. The real problem is that `-v` only works with Bash >= 4.2 but macOS still uses 3.2. This should hopefully correct this simple check once and for all…
  • Loading branch information
mkai authored Sep 23, 2018
1 parent 0056c37 commit 56bc633
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ YELLOW='\033[1;33m'
GRAY='\033[1;30m'
RESET='\033[0m'

if [ -v "PYTHON" ]
if [ -n "${PYTHON+x}" ]
then
printf "${GRAY}Using Python: ${PYTHON}\n"
else
Expand Down

0 comments on commit 56bc633

Please sign in to comment.