diff options
author | Fatih Degirmenci <fatih.degirmenci@ericsson.com> | 2017-01-17 08:38:32 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-01-17 08:38:32 +0000 |
commit | e2be584139c256edfb55c2c3efb118511faddf69 (patch) | |
tree | 3da3ff7d871eb519e4a970a1d019539a686e415e /jjb/3rd_party_ci/download-netvirt-artifact.sh | |
parent | 76e722eca7e73a1a920ff5fb1fa2dc2107753276 (diff) | |
parent | 3a4bd17dd35ef792903601a109fe7934728bcd3c (diff) |
Merge "Avoid removing the whole file system"
Diffstat (limited to 'jjb/3rd_party_ci/download-netvirt-artifact.sh')
-rwxr-xr-x | jjb/3rd_party_ci/download-netvirt-artifact.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jjb/3rd_party_ci/download-netvirt-artifact.sh b/jjb/3rd_party_ci/download-netvirt-artifact.sh index 0a48e3aec..be2d4059a 100755 --- a/jjb/3rd_party_ci/download-netvirt-artifact.sh +++ b/jjb/3rd_party_ci/download-netvirt-artifact.sh @@ -1,6 +1,10 @@ #!/bin/bash set -e +if [ -z ${WORKSPACE} ]; then + echo "WORKSPACE is unset. Please do so." + exit 1 +fi # wipe the WORKSPACE /bin/rm -rf $WORKSPACE/* |