[X2Go-Commits] [buildscripts] 10/14: bin/build-deb-package: check items of ${temp_cleanup} array for being not null.
git-admin at x2go.org
git-admin at x2go.org
Fri Apr 3 03:07:49 CEST 2015
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository buildscripts.
commit 5d0ce798faecef51fca8707ad4cc19ad127a90bf
Author: Mihai Moldovan <ionic at ionic.de>
Date: Fri Apr 3 03:03:27 2015 +0200
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(-)
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
--
Alioth's /srv/git/code.x2go.org/buildscripts.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/buildscripts.git
More information about the x2go-commits
mailing list