correct error conditions
authorSam <sam.saffron@gmail.com>
Thu, 26 May 2016 07:28:39 +0000 (17:28 +1000)
committerSam <sam.saffron@gmail.com>
Thu, 26 May 2016 07:28:39 +0000 (17:28 +1000)
launcher

index d1f6b7846fbbb2fc9b8a7c5aff797290f94c976f..04848bc5d716bbcb6cf12c8be2de20af95310696 100755 (executable)
--- a/launcher
+++ b/launcher
@@ -502,8 +502,10 @@ run_bootstrap() {
   unset FAILED
   # magic exit code that indicates a retry
   if [[ "$ERR" == 77 ]]; then
+    $docker_path rm `cat $cidbootstrap`
+    rm $cidbootstrap
     exit 77
-  else
+  elif [[ "$ERR" > 0 ]]; then
     FAILED=TRUE
   fi