was ignoring error at wrong point
authorChris Koeritz <fred@gruntose.com>
Sat, 18 Nov 2017 01:43:44 +0000 (20:43 -0500)
committerChris Koeritz <fred@gruntose.com>
Sat, 18 Nov 2017 01:43:44 +0000 (20:43 -0500)
scripts/site_avenger/revamp_cakelampvm.sh

index fb3013f445b44e2a17857131b8c84f5fc1646583..05e9be439f77518ec0b2321bc72c33af4df0dd5d 100644 (file)
@@ -139,11 +139,9 @@ test_or_die "changing dir to mapsdemo app"
 
 # gets rid of the old version of configs.
 git stash 
-if [ $? -eq 0 ]; then
-  # we actually stashed something, so deal with that.
-  git stash drop 
-  test_or_die "dropping mapsdemo stash"
-fi
+test_or_die "stashing unwanted mapsdemo changes"
+git stash drop 
+# intentionally ignore error, if there was nothing to drop.
 
 popd