From 5d0ce798faecef51fca8707ad4cc19ad127a90bf Mon Sep 17 00:00:00 2001 From: Mihai Moldovan Date: Fri, 3 Apr 2015 03:03:27 +0200 Subject: bin/build-deb-package: check items of ${temp_cleanup} array for being not null. --- bin/build-deb-package | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/build-deb-package') 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 -- cgit v1.2.3