aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsnapshots-create.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/snapshots-create.sh b/snapshots-create.sh
index 277db73..9a42343 100755
--- a/snapshots-create.sh
+++ b/snapshots-create.sh
@@ -41,7 +41,7 @@ NICE="nice -n 10"
SIGNKEYID=${SIGNKEYID_snapshot}
# Verify signing key is available
-if [[ ! $(gpg --list-keys ${SIGNKEYID} | grep ${SIGNKEYID}) ]]; then
+if ! gpg --list-keys "${SIGNKEYID}" | grep -sq "${SIGNKEYID}"; then
echo "${SIGNKEYID} not imported! exiting"
exit 1
fi