Fix echo when removing venv in jjb-cleanup.sh 17/10717/2
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Thu, 17 May 2018 22:55:23 +0000 (15:55 -0700)
committerTrevor Bramwell <tbramwell@linuxfoundation.org>
Fri, 18 May 2018 16:34:50 +0000 (09:34 -0700)
Missing 'echo' call causes this script to fail when it in truth
succeeds.

Change-Id: I95d798a34442fcf3ca172b3bdd43260db8a09f3c
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
shell/jjb-cleanup.sh

index 8f5a626..9f3536a 100644 (file)
@@ -20,6 +20,7 @@ set -e -o pipefail
 # shellcheck source="$WORKSPACE/.jjb.properties" disable=SC1091
 source "$WORKSPACE/.jjb.properties"
 if [[ -n "$JJB_VENV" && "$JJB_VENV" =~ /tmp/.* ]]; then
-    rm -r "$JJB_VENV" && "$JJB_VENV removed"
+    rm -r "$JJB_VENV" && echo "$JJB_VENV removed"
+    unset JJB_VENV
 fi
 rm "$WORKSPACE/.jjb.properties"