]> asedeno.scripts.mit.edu Git - git.git/blobdiff - git-instaweb.sh
Further 1.5.3.5 fixes described in release notes
[git.git] / git-instaweb.sh
index f5629e7439955666b1755177135ac7ac198bad54..41ff08f8e44b12bddcea257bc66f0b577e342ddd 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