[X2Go-Commits] [x2go-keyring] 13/47: runtests: rework quoting and shellcheck warnings.
git-admin at x2go.org
git-admin at x2go.org
Sun Aug 4 16:28:14 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 e23c49a00f256b45c00cc2c201fdf2ea67de840d
Author: Mihai Moldovan <ionic at ionic.de>
Date: Sun Aug 4 10:56:58 2019 +0200
runtests: rework quoting and shellcheck warnings.
---
debian/changelog | 1 +
runtests | 9 +++++----
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 3c1069d..a27d19d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -25,6 +25,7 @@ x2go-keyring (2014.07.09) UNRELEASED; urgency=medium
the mktemp command.
* runtests: switch to bash.
* runtests: rework counters and exit status.
+ * runtests: rework quoting and shellcheck warnings.
* debian/control:
- Change maintainer to the mailing list.
- Add the old package maintainer to the Uploaders field and myself.
diff --git a/runtests b/runtests
index 224258e..b663cd5 100755
--- a/runtests
+++ b/runtests
@@ -4,15 +4,16 @@ set -e
typeset -i fail='0'
typeset -i total='0'
-for keyring in "x2go-maintainers-gpg" "x2go-keyring-gpg"; do
+for keyring in 'x2go-maintainers-gpg' 'x2go-keyring-gpg'; do
if [ ! -e "output/keyrings/${keyring}" ]; then
echo "** ${keyring} does not exist, cannot run test suite" >&2
- exit "1"
+ exit '1'
fi
done
-export GNUPGHOME="$(mktemp -d --tempdir="${PWD}" 'gpghomedir.XXXXXXXXXXXXXXXX')"
-trap "rm -rf -- '${GNUPGHOME}'" ERR EXIT SIGTERM SIGINT SIGHUP SIGPIPE SIGALRM SIGUSR1 SIGUSR2
+export GNUPGHOME=''
+GNUPGHOME="$(mktemp -d --tempdir="${PWD}" 'gpghomedir.XXXXXXXXXXXXXXXX')"
+trap 'rm -rf -- "${GNUPGHOME}"' ERR EXIT SIGTERM SIGINT SIGHUP SIGPIPE SIGALRM SIGUSR1 SIGUSR2
chmod 700 "${GNUPGHOME}"
for t in t/*.t; do
--
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