diff --git a/check_integrity.sh b/check_integrity.sh index cc029a4..f6dc186 100755 --- a/check_integrity.sh +++ b/check_integrity.sh @@ -15,7 +15,7 @@ check_bash_script() { || err "Run 'chmod +x bin/$cmd' to make it executable" shebang=$(head -n1 "bin/$cmd") - test "$shebang" == "#!/usr/bin/env bash" \ + [[ "$shebang" =~ \#![[:space:]]*/usr/bin/env[[:space:]]+bash ]] \ || err "Start git-$1 with '#!/usr/bin/env bash'" }