소스 검색

Update setup-domain

Code Slicer 3 년 전
부모
커밋
d5d33baeb3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      compose/bin/setup-domain

+ 1 - 1
compose/bin/setup-domain

@@ -5,7 +5,7 @@ set -o errexit
 
 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 "127.0.0.1 ::1 $DOMAIN" | sudo tee -a /etc/hosts
 fi