From be2366659230d66ca788dc3a25e22ea7fffb9274 Mon Sep 17 00:00:00 2001 From: Zachary Boyd Date: Wed, 19 Mar 2014 13:22:31 +0000 Subject: [PATCH] _ --- test.sh.php | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) 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