summaryrefslogtreecommitdiff
path: root/bin/build-deb-package
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2015-04-03 03:03:27 +0200
committerMihai Moldovan <ionic@ionic.de>2015-04-03 03:03:27 +0200
commit5d0ce798faecef51fca8707ad4cc19ad127a90bf (patch)
tree0790eadeafb3f4966c04d4e180ad30ab5cfca530 /bin/build-deb-package
parenta03cc980a44958ad24a2c588ba651f1d994673e2 (diff)
downloadbuildscripts-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-xbin/build-deb-package2
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