X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fjjb-cleanup.sh;h=69d1534bb176a4ca32c950692f62e6db01e8a8ca;hb=11bccd3d96d180f93ae96cd330e23565ba351aa5;hp=9f3536a3c406d96e3d35ba003c9cdbd797fa8458;hpb=a9a25596239cc8b5fd374cf742764fe5a9c2a3d7;p=releng%2Fglobal-jjb.git diff --git a/shell/jjb-cleanup.sh b/shell/jjb-cleanup.sh index 9f3536a3..69d1534b 100644 --- a/shell/jjb-cleanup.sh +++ b/shell/jjb-cleanup.sh @@ -20,7 +20,8 @@ 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" && echo "$JJB_VENV removed" + rm -rf "$JJB_VENV" && echo "$JJB_VENV removed" unset JJB_VENV fi -rm "$WORKSPACE/.jjb.properties" +rm -f "$WORKSPACE/.jjb.properties" +deactivate