diff options
author | Kyle J. McKay <mackyle@gmail.com> | 2015-03-07 21:05:38 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-03-10 15:10:35 -0700 |
commit | ff7a9dc2c503360190650d604dbdbc293d99b765 (patch) | |
tree | 83d2af21c6866cd4792eb41596376d36ca800459 /git-instaweb.sh | |
parent | 130e475e1f8aa72e48dde43159a28232ff31fee6 (diff) | |
download | git-ff7a9dc2c503360190650d604dbdbc293d99b765.tar.gz |
git-instaweb: use @SHELL_PATH@ instead of /bin/sh
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>
Diffstat (limited to 'git-instaweb.sh')
-rwxr-xr-x | git-instaweb.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-instaweb.sh b/git-instaweb.sh index 4c0af04fe9..47e38f34c3 100755 --- a/git-instaweb.sh +++ b/git-instaweb.sh @@ -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 |