|
@@ -5,7 +5,7 @@ set -o errexit
|
|
|
|
|
|
DOMAIN=$1
|
|
DOMAIN=$1
|
|
|
|
|
|
-if ! grep -q $DOMAIN /etc/hosts; then
|
|
|
|
|
|
+if ! grep -q "$DOMAIN" /etc/hosts; then
|
|
echo "Your system password is needed to add an entry to /etc/hosts..."
|
|
echo "Your system password is needed to add an entry to /etc/hosts..."
|
|
echo "127.0.0.1 ::1 $DOMAIN" | sudo tee -a /etc/hosts
|
|
echo "127.0.0.1 ::1 $DOMAIN" | sudo tee -a /etc/hosts
|
|
fi
|
|
fi
|