@@ -15,7 +15,7 @@ browser="`git config --get instaweb.browser`"
1515port=` git config --get instaweb.port`
1616module_path=" ` git config --get instaweb.modulepath` "
1717
18- conf=$GIT_DIR /gitweb/httpd.conf
18+ conf=" $GIT_DIR /gitweb/httpd.conf"
1919
2020# Defaults:
2121
@@ -32,7 +32,7 @@ start_httpd () {
3232 httpd_only=" ` echo $httpd | cut -f1 -d' ' ` "
3333 if case " $httpd_only " in /* ) : ;; * ) which $httpd_only > /dev/null;; esac
3434 then
35- $httpd $fqgitdir /gitweb/httpd.conf
35+ $httpd " $fqgitdir /gitweb/httpd.conf"
3636 else
3737 # many httpds are installed in /usr/sbin or /usr/local/sbin
3838 # these days and those are not in most users $PATHs
@@ -146,14 +146,14 @@ server.pid-file = "$fqgitdir/pid"
146146cgi.assign = ( ".cgi" => "" )
147147mimetype.assign = ( ".css" => "text/css" )
148148EOF
149- test " $local " = true && echo ' server.bind = "127.0.0.1"' >> " $conf "
149+ test x " $local " = xtrue && echo ' server.bind = "127.0.0.1"' >> " $conf "
150150}
151151
152152apache2_conf () {
153153 test -z " $module_path " && module_path=/usr/lib/apache2/modules
154154 mkdir -p " $GIT_DIR /gitweb/logs"
155155 bind=
156- test " $local " = true && bind=' 127.0.0.1:'
156+ test x " $local " = xtrue && bind=' 127.0.0.1:'
157157 echo ' text/css css' > $fqgitdir /mime.types
158158 cat > " $conf " << EOF
159159ServerName "git-instaweb"
206206}
207207
208208script='
209- s#^\(my\|our\) $projectroot =.*#\1 $projectroot = "' ` dirname $fqgitdir ` ' ";#
209+ s#^\(my\|our\) $projectroot =.*#\1 $projectroot = "' $( dirname " $fqgitdir " ) ' ";#
210210s#\(my\|our\) $gitbin =.*#\1 $gitbin = "' $GIT_EXEC_PATH ' ";#
211211s#\(my\|our\) $projects_list =.*#\1 $projects_list = $projectroot;#
212212s#\(my\|our\) $git_temp =.*#\1 $git_temp = "' $fqgitdir /gitweb/tmp' ";#'
@@ -226,8 +226,8 @@ gitweb_css () {
226226EOFGITWEB
227227}
228228
229- gitweb_cgi $GIT_DIR /gitweb/gitweb.cgi
230- gitweb_css $GIT_DIR /gitweb/gitweb.css
229+ gitweb_cgi " $GIT_DIR /gitweb/gitweb.cgi"
230+ gitweb_css " $GIT_DIR /gitweb/gitweb.css"
231231
232232case " $httpd " in
233233* lighttpd* )
@@ -243,6 +243,5 @@ case "$httpd" in
243243esac
244244
245245start_httpd
246- test -z " $browser " && browser=echo
247246url=http://127.0.0.1:$port
248- $browser $url || echo $url
247+ " $browser " $url || echo $url
0 commit comments