remove #!interpreter line from shell libraries
[gitweb.git] / t / test-lib.sh
index c306bd0668f1a58c0986f5fede278447b1ab5b88..c3e07b9e162d6ec6984e07d1ea8061c14658642a 100644 (file)
@@ -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")