diff options
Diffstat (limited to 't')
-rw-r--r-- | t/test-lib.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh index c306bd0668..c3e07b9e16 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -573,11 +573,9 @@ then make_valgrind_symlink () { # handle only executables, unless they are shell libraries that - # need to be in the exec-path. We will just use "#!" as a - # guess for a shell-script, since we have no idea what the user - # may have configured as the shell path. + # need to be in the exec-path. test -x "$1" || - test "#!" = "$(head -c 2 <"$1")" || + test "# " = "$(head -c 2 <"$1")" || return; base=$(basename "$1") |