]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
fixup: check for 10min if testserver came up again
authorHolger Levsen <holger@layer-acht.org>
Thu, 8 Nov 2012 12:44:35 +0000 (13:44 +0100)
committerHolger Levsen <holger@layer-acht.org>
Thu, 8 Nov 2012 12:44:35 +0000 (13:44 +0100)
liveboot_testdeploy.sh

index 898e533c8eecde908558403b0ec209355bf66fb1..f5e99fa987617dbb7d61928a7f6ed63791725e86 100755 (executable)
@@ -33,12 +33,12 @@ ping -c 1 $TESTSERVER || true
 
 for i in $(seq 1 10) ; do
        sleep 60
-       if $(ping -c 1 $TESTSERVER) ; then
+       if [ $(ping -c 1 $TESTSERVER) ] ; then
                break
        fi
 done
 
-if $(ping -c 1 $TESTSERVER) ; then
+if [ $(ping -c 1 $TESTSERVER) ] ; then
        figlet Ok
        echo "$TESTSERVER pings again, so we assume it's up."
        echo "Please continue manual testing of $(basedir $SOURCE_DIR)"