Permalink
Browse files

Merge pull request #20 from IrregularShed/master

Fixing unary operator errors
  • Loading branch information...
2 parents b992d82 + 23d3a44 commit c0604a77f42a571a9a6e2b7c25d729e101b96b9b @pgib committed Sep 4, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 virtualhost.sh
View
@@ -127,7 +127,7 @@ if [ `whoami` != 'root' ]; then
sudo $0 $* || exit 1
fi
-if [ $SUDO_USER = "root" ]; then
+if [ "$SUDO_USER" = "root" ]; then
/bin/echo "You must start this under your regular user account (not root) using sudo."
/bin/echo "Rerun using: sudo $0 $*"
exit 1
@@ -409,14 +409,14 @@ __EOT
if [ -z $1 ]; then
usage
else
- if [ $1 = "--delete" ]; then
+ if [ "$1" = "--delete" ]; then
if [ -z $2 ]; then
usage
else
VIRTUALHOST=$2
DELETE=0
fi
- elif [ $1 = "--list" ]; then
+ elif [ "$1" = "--list" ]; then
if [ -d $APACHE_CONFIG/virtualhosts ]; then
echo "Listing virtualhosts found in $APACHE_CONFIG/virtualhosts"
echo

0 comments on commit c0604a7

Please sign in to comment.