[X2Go-Commits] [buildscripts] 01/01: bin/createsusetagsrepo: switch from failglob to nullglob, as it will stop execution of the for loop more nicely.
git-admin at x2go.org
git-admin at x2go.org
Thu Nov 24 09:53:14 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 9a875c12e06a11be1ae6f6fb50a0a82454f11f34
Author: Mihai Moldovan <ionic at ionic.de>
Date: Thu Nov 24 09:53:09 2016 +0100
bin/createsusetagsrepo: switch from failglob to nullglob, as it will stop execution of the for loop more nicely.
---
bin/createsusetagsrepo | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/bin/createsusetagsrepo b/bin/createsusetagsrepo
index 7cb8e42..553a697 100755
--- a/bin/createsusetagsrepo
+++ b/bin/createsusetagsrepo
@@ -43,14 +43,12 @@ cleanup_repo () {
# Create new ones.
typeset file=""
- typeset failglob="$(shopt -p failglob)"
- shopt -s failglob
- set +e
+ typeset nullglob="$(shopt -p nullglob)"
+ shopt -s nullglob
for file in */*.rpm; do
ln -sfv -- "${file}" "$(basename "${file}")"
done
- eval "${failglob}"
- set -e
+ eval "${nullglob}"
popd
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