]> git.ipfire.org Git - thirdparty/git.git/commitdiff
git-instaweb: use @SHELL_PATH@ instead of /bin/sh
authorKyle J. McKay <mackyle@gmail.com>
Sun, 8 Mar 2015 05:05:38 +0000 (21:05 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 10 Mar 2015 22:10:35 +0000 (15:10 -0700)
If the user has configured a value for SHELL_PATH then
be sure to use it for any generated scripts instead of
hard-coding /bin/sh.

The first line of the script is handled specially, but
the embedded #!/bin/sh line in the here document will
not be automatically updated unless it uses @SHELL_PATH@.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-instaweb.sh

index 4c0af04fe9be877a4728e610361244500785bf08..47e38f34c3a871349630660e6e3387d554c29d36 100755 (executable)
@@ -205,7 +205,7 @@ webrick_conf () {
        # actual gitweb.cgi using a shell script to force it
   wrapper="$fqgitdir/gitweb/$httpd/wrapper.sh"
        cat > "$wrapper" <<EOF
-#!/bin/sh
+#!@SHELL_PATH@
 # we use this shell script wrapper around the real gitweb.cgi since
 # there appears to be no other way to pass arbitrary environment variables
 # into the CGI process