summaryrefslogtreecommitdiff
path: root/git-instaweb.sh
diff options
context:
space:
mode:
authorStephen Boyd <bebarino@gmail.com>2010-01-26 15:08:31 -0800
committerJunio C Hamano <gitster@pobox.com>2010-01-26 15:16:54 -0800
commit9524cf29930b4f91d68ad1384d7f984393a54c15 (patch)
treefec23ec235813a482b7d3d9e2bf187c9ddd8b2ef /git-instaweb.sh
parent24072c0256a520408575416fe8706667b576ff99 (diff)
downloadgit-9524cf29930b4f91d68ad1384d7f984393a54c15.tar.gz
fix portability issues with $ in double quotes
Using a dollar sign in double quotes isn't portable. Escape them with a backslash or replace the double quotes with single quotes. Signed-off-by: Stephen Boyd <bebarino@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-instaweb.sh')
-rwxr-xr-xgit-instaweb.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-instaweb.sh b/git-instaweb.sh
index b8e6456208..6a65f255cc 100755
--- a/git-instaweb.sh
+++ b/git-instaweb.sh
@@ -320,7 +320,7 @@ EOF
else
# plain-old CGI
resolve_full_httpd
- list_mods=$(echo "$full_httpd" | sed "s/-f$/-l/")
+ list_mods=$(echo "$full_httpd" | sed 's/-f$/-l/')
$list_mods | sane_grep 'mod_cgi\.c' >/dev/null 2>&1 || \
if test -f "$module_path/mod_cgi.so"
then