Fix bash if exit

Change-Id: I82fe3c2e702bbad9a8b3dc87e3317eb4dd4fc6c8
This commit is contained in:
Joshua Hesketh 2015-01-27 16:47:17 +11:00
parent 0f44961ec9
commit 7cd93ec597

View File

@ -17,7 +17,7 @@ while ! grep -q "$END_UUID" /tmp/console.txt; do
TRIES=$((TRIES+1)) TRIES=$((TRIES+1))
if [ $TRIES -gt $RETRY_LIMIT ]; then if [ $TRIES -gt $RETRY_LIMIT ]; then
break break
done fi
sleep 3 sleep 3
wget -c -O /tmp/console.txt --no-check-certificate $BUILD_URL$console_log_path wget -c -O /tmp/console.txt --no-check-certificate $BUILD_URL$console_log_path
done done
@ -29,7 +29,7 @@ while ! grep -q "$END_UUID" /tmp/console.html; do
TRIES=$((TRIES+1)) TRIES=$((TRIES+1))
if [ $TRIES -gt $RETRY_LIMIT ]; then if [ $TRIES -gt $RETRY_LIMIT ]; then
break break
done fi
sleep 3 sleep 3
wget -c -O /tmp/console.html --no-check-certificate $BUILD_URL$console_log_path wget -c -O /tmp/console.html --no-check-certificate $BUILD_URL$console_log_path
done done