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>

Kyle J. McKay committed Mar 7, 2015 at 21:05 UTC ff7a9dc2c503360190650d604dbdbc293d99b765
1 file changed +1 -1
git-instaweb.sh
+1 -1
@@ -205,7 +205,7 @@ webrick_conf () {
205 # actual gitweb.cgi using a shell script to force it
206 wrapper="$fqgitdir/gitweb/$httpd/wrapper.sh"
207 cat > "$wrapper" <<EOF
208 -#!/bin/sh
208 +#!@SHELL_PATH@
209 # we use this shell script wrapper around the real gitweb.cgi since
210 # there appears to be no other way to pass arbitrary environment variables
211 # into the CGI process