Browse Source

Missed another typo...

JTruj1ll0923 3 năm trước cách đây
mục cha
commit
7352597cf7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      scripts/start.sh

+ 1 - 1
scripts/start.sh

@@ -54,7 +54,7 @@ fi
 
 
 function host_check {
 function host_check {
   INTERNAL_IP="$(hostname -I 2>&1| awk '{print $1}')"
   INTERNAL_IP="$(hostname -I 2>&1| awk '{print $1}')"
-  if [ '$(grep -q "hostname: invalid option $INTERNAL_IP' ]; then 
+  if [ '$(grep -q "hostname: invalid option" $INTERNAL_IP' ]; then 
     INTERNAL_IP="$(ip route show | grep -i default | awk -F' ' '{print $9}')"
     INTERNAL_IP="$(ip route show | grep -i default | awk -F' ' '{print $9}')"
   fi
   fi
 }
 }