Skip to content

Commit d308800

Browse files
authored
Use POSIX syntax for Bash detection (#127)
1 parent da64ad4 commit d308800

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bash-preexec.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
# either of these after bash-preexec has been installed it will most likely break.
3434

3535
# Make sure this is bash that's running and return otherwise.
36-
if [[ -z "${BASH_VERSION:-}" ]]; then
36+
# Use POSIX syntax for this line:
37+
if [ -z "${BASH_VERSION-}" ]; then
3738
return 1;
3839
fi
3940

0 commit comments

Comments
 (0)