浏览代码

Missed another typo...

JTruj1ll0923 3 年之前
父节点
当前提交
7352597cf7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scripts/start.sh

+ 1 - 1
scripts/start.sh

@@ -54,7 +54,7 @@ fi
 
 function host_check {
   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}')"
   fi
 }