From 7cd93ec597a43ffabb903434f3053160599c6c27 Mon Sep 17 00:00:00 2001 From: Joshua Hesketh Date: Tue, 27 Jan 2015 16:47:17 +1100 Subject: [PATCH] Fix bash if exit Change-Id: I82fe3c2e702bbad9a8b3dc87e3317eb4dd4fc6c8 --- jenkins/scripts/grab_console_log.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jenkins/scripts/grab_console_log.sh b/jenkins/scripts/grab_console_log.sh index e2a83b70fb..971a01d1be 100755 --- a/jenkins/scripts/grab_console_log.sh +++ b/jenkins/scripts/grab_console_log.sh @@ -17,7 +17,7 @@ while ! grep -q "$END_UUID" /tmp/console.txt; do TRIES=$((TRIES+1)) if [ $TRIES -gt $RETRY_LIMIT ]; then break - done + fi sleep 3 wget -c -O /tmp/console.txt --no-check-certificate $BUILD_URL$console_log_path done @@ -29,7 +29,7 @@ while ! grep -q "$END_UUID" /tmp/console.html; do TRIES=$((TRIES+1)) if [ $TRIES -gt $RETRY_LIMIT ]; then break - done + fi sleep 3 wget -c -O /tmp/console.html --no-check-certificate $BUILD_URL$console_log_path done