Skip to content
This repository
Browse code

Merge pull request #20 from IrregularShed/master

Fixing unary operator errors
  • Loading branch information...
commit c0604a77f42a571a9a6e2b7c25d729e101b96b9b 2 parents b992d82 + 23d3a44
Patrick Gibson authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +3 3 virtualhost.sh
6 virtualhost.sh
@@ -127,7 +127,7 @@ if [ `whoami` != 'root' ]; then
127 127 sudo $0 $* || exit 1
128 128 fi
129 129
130   -if [ $SUDO_USER = "root" ]; then
  130 +if [ "$SUDO_USER" = "root" ]; then
131 131 /bin/echo "You must start this under your regular user account (not root) using sudo."
132 132 /bin/echo "Rerun using: sudo $0 $*"
133 133 exit 1
@@ -409,14 +409,14 @@ __EOT
409 409 if [ -z $1 ]; then
410 410 usage
411 411 else
412   - if [ $1 = "--delete" ]; then
  412 + if [ "$1" = "--delete" ]; then
413 413 if [ -z $2 ]; then
414 414 usage
415 415 else
416 416 VIRTUALHOST=$2
417 417 DELETE=0
418 418 fi
419   - elif [ $1 = "--list" ]; then
  419 + elif [ "$1" = "--list" ]; then
420 420 if [ -d $APACHE_CONFIG/virtualhosts ]; then
421 421 echo "Listing virtualhosts found in $APACHE_CONFIG/virtualhosts"
422 422 echo

0 comments on commit c0604a7

Please sign in to comment.
Something went wrong with that request. Please try again.