From 9b240453b91f3c4b0844ea1c593721a1c421caa2 Mon Sep 17 00:00:00 2001 From: Trevor Bramwell Date: Thu, 17 May 2018 15:55:23 -0700 Subject: [PATCH] Fix echo when removing venv in jjb-cleanup.sh Missing 'echo' call causes this script to fail when it in truth succeeds. Change-Id: I95d798a34442fcf3ca172b3bdd43260db8a09f3c Signed-off-by: Trevor Bramwell --- shell/jjb-cleanup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shell/jjb-cleanup.sh b/shell/jjb-cleanup.sh index 8f5a6260..9f3536a3 100644 --- a/shell/jjb-cleanup.sh +++ b/shell/jjb-cleanup.sh @@ -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" -- 2.16.6