From 4cb40026de728f3c834b43b2076b58972a7166c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=86=A0=E7=BE=A4?= Date: Tue, 20 Oct 2020 17:35:57 +0800 Subject: [PATCH] Edit by browser --- step2/2.sh | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/step2/2.sh b/step2/2.sh index 804c4b2..f808ff2 100644 --- a/step2/2.sh +++ b/step2/2.sh @@ -1,20 +1,3 @@ #!/bin/bash #/bin/sbin -sh /data/workspace/myshixun/step2/wenti.sh > /root/1.log 2>&1 & -curl -s http://cip.cc|awk -F '/' '/URL/{print $4}' > /root/2.log 2>&1 & - -a=$(cat /root/1.log) -b=$(cat /root/2.log) -FIND_FILE="/data/workspace/myshixun/step2/wenti.sh" -FIND_STR="ip.cip.cc" -if [ "$a" = "$b" ] - then - if [ `grep -c "$FIND_STR" $FIND_FILE` -ne '0' ];then - echo "禁止使用ip.cip.cc" - else - echo "答案正确" - fi - else - echo "答案错误" - - fi \ No newline at end of file +sh /data/workspace/myshixun/step2/wenti.sh \ No newline at end of file