git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git-instaweb: use @SHELL_PATH@ instead of /bin/sh
@ 2015-03-08  5:05 Kyle J. McKay
  0 siblings, 0 replies; only message in thread
From: Kyle J. McKay @ 2015-03-08  5:05 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Git mailing list

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>
---
 git-instaweb.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/git-instaweb.sh b/git-instaweb.sh
index 513efa66..7b6ba2bc 100755
--- a/git-instaweb.sh
+++ b/git-instaweb.sh
@@ -204,7 +204,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
---

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-03-08  5:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-08  5:05 [PATCH] git-instaweb: use @SHELL_PATH@ instead of /bin/sh Kyle J. McKay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).