]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-instaweb.sh
git-sh-setup: remove "sane_grep", it's not needed anymore
[thirdparty/git.git] / git-instaweb.sh
index 54094fbe8de5c530b62cc0a907543a5186b11e9f..4349566c89163ea21dfb8388f494cdcdf86604c9 100755 (executable)
@@ -49,7 +49,7 @@ resolve_full_httpd () {
        *apache2*|*lighttpd*|*httpd*)
                # yes, *httpd* covers *lighttpd* above, but it is there for clarity
                # ensure that the apache2/lighttpd command ends with "-f"
-               if ! echo "$httpd" | sane_grep -- '-f *$' >/dev/null 2>&1
+               if ! echo "$httpd" | grep -- '-f *$' >/dev/null 2>&1
                then
                        httpd="$httpd -f"
                fi
@@ -399,7 +399,7 @@ EOF
                # plain-old CGI
                resolve_full_httpd
                list_mods=$(echo "$full_httpd" | sed 's/-f$/-l/')
-               $list_mods | sane_grep 'mod_cgi\.c' >/dev/null 2>&1 || \
+               $list_mods | grep 'mod_cgi\.c' >/dev/null 2>&1 || \
                if test -f "$module_path/mod_cgi.so"
                then
                        echo "LoadModule cgi_module $module_path/mod_cgi.so" >> "$conf"