aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2017-11-24 18:44:24 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2017-11-24 18:44:24 -0800
commit98136083108ed6943f3b35f4ea9a9ec31550e4d0 (patch)
tree3c22cfbf7df7851f9c82fd20122c1ac8e8d26fba
parentMove GPG key details to vars. (diff)
downloadmastermirror-scripts-98136083108ed6943f3b35f4ea9a9ec31550e4d0.tar.gz
mastermirror-scripts-98136083108ed6943f3b35f4ea9a9ec31550e4d0.tar.bz2
mastermirror-scripts-98136083108ed6943f3b35f4ea9a9ec31550e4d0.zip
snapshots-create.sh: improve gpg key check.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-xsnapshots-create.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/snapshots-create.sh b/snapshots-create.sh
index 5255a85..5a444f4 100755
--- a/snapshots-create.sh
+++ b/snapshots-create.sh
@@ -38,7 +38,8 @@ NICE="nice -n 10"
SIGNKEYID=${SIGNKEYID_snapshot}
-if [[ ! $(gpg -k | grep ${SIGNKEYID}) ]]; then
+# Verify signing key is available
+if [[ ! $(gpg --list-keys ${SIGNKEYID} | grep ${SIGNKEYID}) ]]; then
echo "${SIGNKEYID} not imported! exiting"
exit 1
fi