diff --git a/test.sh.php b/test.sh.php index 6fadf13..214063b 100644 --- a/test.sh.php +++ b/test.sh.php @@ -1,13 +1,10 @@ #!/bin/bash -while : -do - if export http_proxy=http://:@localhost: && wget -qO- http://ifconfig.me/ip; then - sleep 1; - else - echo "test failed"; - init 6; - break; - fi -done \ No newline at end of file +if export http_proxy=http://:@localhost: && wget -qO- http://ifconfig.me/ip; then + exit 0; +else + echo "test failed"; + init 6; + exit 1; +fi \ No newline at end of file