]> asedeno.scripts.mit.edu Git - git.git/blobdiff - git-instaweb.sh
Merge branch 'db/fetch-pack'
[git.git] / git-instaweb.sh
index 2e4eeccaceb434696071be9a8a2f6af24000d976..95c3e5aa1f9bd5f0cec215ee2f81b2d4c36ea929 100755 (executable)
@@ -30,8 +30,7 @@ test -z "$port" && port=1234
 
 start_httpd () {
        httpd_only="`echo $httpd | cut -f1 -d' '`"
-       if test "`expr index $httpd_only /`" -eq '1' || \
-                               which $httpd_only >/dev/null
+       if case "$httpd_only" in /*) : ;; *) which $httpd_only >/dev/null;; esac
        then
                $httpd $fqgitdir/gitweb/httpd.conf
        else