summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-04-09 11:37:55 +0200
committerErich Eckner <git@eckner.net>2018-04-09 11:37:55 +0200
commitca48ace386bda8cd5221fbaece1cd6b82a6e8130 (patch)
treecb139bbb3307c19fdf898a338f741ac4eb2db602
parent507b4d7efce270ae59302804f2ea0b2759fb6ec5 (diff)
downloadcrypt-expiry-check-ca48ace386bda8cd5221fbaece1cd6b82a6e8130.tar.xz
crypt-expiry-check.in: quote gpg arguments to _really_ allow spaces
-rwxr-xr-xcrypt-expiry-check.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypt-expiry-check.in b/crypt-expiry-check.in
index d70988e..aade444 100755
--- a/crypt-expiry-check.in
+++ b/crypt-expiry-check.in
@@ -404,8 +404,8 @@ check_gpg_key_status() {
fi
GPG_ADDRESS="${2}"
- KEY_INFO="$(${1} --list-secret-keys ${GPG_ADDRESS} 2> /dev/null)"
- [ -z "${KEY_INFO}" ] && KEY_INFO="$(${1} --list-keys ${GPG_ADDRESS})"
+ KEY_INFO="$(${1} --list-secret-keys "${GPG_ADDRESS}" 2> /dev/null)"
+ [ -z "${KEY_INFO}" ] && KEY_INFO="$(${1} --list-keys "${GPG_ADDRESS}")"
KEY_DATE_STR="$(
echo "${KEY_INFO}" | \