[X2Go-Commits] [buildscripts] 15/26: bin/sbuild-deb-package: backport from bin/build-deb-package: check temp_dir to be non-empty.
git-admin at x2go.org
git-admin at x2go.org
Sun Nov 13 20:35:46 CET 2016
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository buildscripts.
commit 97be97f59c0195608838da7dfbca08196693c3c8
Author: Mihai Moldovan <ionic at ionic.de>
Date: Sun Nov 13 19:42:52 2016 +0100
bin/sbuild-deb-package: backport from bin/build-deb-package: check temp_dir to be non-empty.
---
bin/sbuild-deb-package | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/sbuild-deb-package b/bin/sbuild-deb-package
index 27f2720..7905648 100755
--- a/bin/sbuild-deb-package
+++ b/bin/sbuild-deb-package
@@ -66,7 +66,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