X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-instaweb.sh;h=16cd351f7f0d992be37be83017961c70731d4cc5;hb=170487fbc3d7ec0f36208eed18d4ca0ea1e1acb7;hp=9829c591543b0fe4dd55b996cb399d925dda08ab;hpb=2b5d2d8792c861913d48bcfe02d8a6049c3911f5;p=git.git diff --git a/git-instaweb.sh b/git-instaweb.sh index 9829c5915..16cd351f7 100755 --- a/git-instaweb.sh +++ b/git-instaweb.sh @@ -54,6 +54,10 @@ start_httpd () { fi done fi + if test $? != 0; then + echo "Could not execute http daemon $httpd." + exit 1 + fi } stop_httpd () { @@ -184,7 +188,7 @@ EOF else # plain-old CGI list_mods=`echo "$httpd" | sed "s/-f$/-l/"` - $list_mods | grep 'mod_cgi\.c' >/dev/null || \ + $list_mods | grep 'mod_cgi\.c' >/dev/null 2>&1 || \ echo "LoadModule cgi_module $module_path/mod_cgi.so" >> "$conf" cat >> "$conf" <