[X2Go-Commits] [x2go-keyring] 07/47: t/keyids-complete.t: use find ... -print0 | while read -r -d '' ... instead of for loop.
git-admin at x2go.org
git-admin at x2go.org
Sun Aug 4 16:28:13 CEST 2019
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository x2go-keyring.
commit 1f7d70881642f56f26e54e3e1d13cf603f63eaa2
Author: Mihai Moldovan <ionic at ionic.de>
Date: Sun Aug 4 09:11:54 2019 +0200
t/keyids-complete.t: use find ... -print0 | while read -r -d '' ... instead of for loop.
---
debian/changelog | 2 ++
t/keyids-complete.t | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 98b68a1..097c298 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -18,6 +18,8 @@ x2go-keyring (2014.07.09) UNRELEASED; urgency=medium
* t/keyids-complete.t: make return-code an integer.
* t/keyids-complete.t: use pushd/popd instead of cd.
* t/keyids-complete.t: update comment.
+ * t/keyids-complete.t: use find ... -print0 | while read -r -d '' ...
+ instead of for loop.
* debian/control:
- Change maintainer to the mailing list.
- Add the old package maintainer to the Uploaders field and myself.
diff --git a/t/keyids-complete.t b/t/keyids-complete.t
index 4b0bfae..0765f0c 100755
--- a/t/keyids-complete.t
+++ b/t/keyids-complete.t
@@ -7,7 +7,7 @@ typeset -i fail='0'
for keyring in "x2go-maintainers-gpg" "x2go-keyring-gpg"; do
pushd "${keyring}" >'/dev/null'
- for key in 0x*; do
+ find . -iname '0x*' -print0 | while -r -d '' read key; do
if ! grep -q "^${key} " ../keyids; then
echo "${keyring}: ${key} is not in keyids file."
fail='1'
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2go-keyring.git
More information about the x2go-commits
mailing list