git-instaweb: Use $conf, not $fqgitdir/gitweb/httpd.conf
Don't repeat yourself: use "$conf" instead of its [current] contents, namely "$fqgitdir/gitweb/httpd.conf". Signed-off-by: Jakub Narebski <jnareb@gmail.com> Acked-by: Eric Wong <normalperson@yhbt.net>
Jakub Narebski committed
Jun 23, 2011 at 21:56 UTC
48bf76ca93c7569660712c12b3c4f86c60803352
1 file changed
+2
-2
git-instaweb.sh
+2
-2
@@ -103,7 +103,7 @@ start_httpd () {
103
case "$httpd" in
104
*mongoose*|*plackup*)
105
#These servers don't have a daemon mode so we'll have to fork it
106
- $full_httpd "$fqgitdir/gitweb/httpd.conf" &
106
+ $full_httpd "$conf" &
107
#Save the pid before doing anything else (we'll print it later)
108
pid=$!
109
@@ -117,7 +117,7 @@ $pid
117
EOF
118
;;
119
*)
120
- $full_httpd "$fqgitdir/gitweb/httpd.conf"
120
+ $full_httpd "$conf"
121
if test $? != 0; then
122
echo "Could not execute http daemon $httpd."
123
exit 1