commit fb0ee5870bcb3e5dd09fdcdadcf45429e0709213
parent 4b216a4debf71c3ff2fd9bdbbf3fcd4cb09b8323
Author: Klemens Nanni <kl3@posteo.org>
Date: Sun, 29 May 2016 13:14:42 +0200
Properly escape whitespaces in ${PASSWORD_STORE_KEY}
The key might be specified by a name containing whitespaces instead of
an email address or key ID.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/spm.sh b/spm.sh
@@ -25,7 +25,7 @@ STORE_DIR="${PASSWORD_STORE_DIR:-${HOME}/.spm}"
if [ -z "${PASSWORD_STORE_KEY}" ]; then
GPG_OPTS="${GPG_OPTS} --default-recipient-self"
else
- GPG_OPTS="${GPG_OPTS} --recipient ${PASSWORD_STORE_KEY}"
+ GPG_OPTS="${GPG_OPTS} --recipient '${PASSWORD_STORE_KEY}'"
fi
## Helper