diff options
author | Mihai Moldovan <ionic@ionic.de> | 2015-04-03 03:03:27 +0200 |
---|---|---|
committer | Mihai Moldovan <ionic@ionic.de> | 2015-04-03 03:03:27 +0200 |
commit | 5d0ce798faecef51fca8707ad4cc19ad127a90bf (patch) | |
tree | 0790eadeafb3f4966c04d4e180ad30ab5cfca530 /bin/build-deb-package | |
parent | a03cc980a44958ad24a2c588ba651f1d994673e2 (diff) | |
download | buildscripts-5d0ce798faecef51fca8707ad4cc19ad127a90bf.tar.gz buildscripts-5d0ce798faecef51fca8707ad4cc19ad127a90bf.tar.bz2 buildscripts-5d0ce798faecef51fca8707ad4cc19ad127a90bf.zip |
bin/build-deb-package: check items of ${temp_cleanup} array for being not null.
Diffstat (limited to 'bin/build-deb-package')
-rwxr-xr-x | bin/build-deb-package | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/build-deb-package b/bin/build-deb-package index 3480e90..ec6fbc9 100755 --- a/bin/build-deb-package +++ b/bin/build-deb-package @@ -56,7 +56,7 @@ set -ex cleanup () { typeset temp_dir="" for temp_dir in "${temp_cleanup[@]}"; do - if [ -d "${temp_dir}" ]; then + if [ -n "${temp_dir}" ] && [ -d "${temp_dir}" ]; then rm -Rf "${temp_dir}" fi done |