{"thread":{"id":"38748","subject":"[PATCH] git-instaweb: use @SHELL_PATH@ instead of /bin/sh","startedAt":"2015-03-08T05:05:38Z","lastAt":"2015-03-08T05:05:38Z","messageCount":1,"participants":["Kyle J. McKay"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"257261","messageId":"42064c37a546290187a4a33869526c6@74d39fa044aa309eaea14b9f57fe79c","threadId":"38748","inReplyTo":null,"subject":"[PATCH] git-instaweb: use @SHELL_PATH@ instead of /bin/sh","fromName":"Kyle J. McKay","fromEmail":"mackyle@gmail.com","sentAt":"2015-03-08T05:05:38Z","receivedAt":"2015-03-08T05:05:38Z","isPatch":true,"sender":{"key":"mackyle@gmail.com","avatar":"https://avatars.githubusercontent.com/u/813346?v=4"},"body":"If the user has configured a value for SHELL_PATH then\nbe sure to use it for any generated scripts instead of\nhard-coding /bin/sh.\n\nThe first line of the script is handled specially, but\nthe embedded #!/bin/sh line in the here document will\nnot be automatically updated unless it uses @SHELL_PATH@.\n\nSigned-off-by: Kyle J. McKay <mackyle@gmail.com>\n---\n git-instaweb.sh | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/git-instaweb.sh b/git-instaweb.sh\nindex 513efa66..7b6ba2bc 100755\n--- a/git-instaweb.sh\n+++ b/git-instaweb.sh\n@@ -204,7 +204,7 @@ webrick_conf () {\n \t# actual gitweb.cgi using a shell script to force it\n   wrapper=\"$fqgitdir/gitweb/$httpd/wrapper.sh\"\n \tcat > \"$wrapper\" <<EOF\n-#!/bin/sh\n+#!@SHELL_PATH@\n # we use this shell script wrapper around the real gitweb.cgi since\n # there appears to be no other way to pass arbitrary environment variables\n # into the CGI process\n---\n"}]}