summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-30 20:35:30 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-30 20:35:30 (EDT)
commitc136e175edae9febd66fcab92b5e84a3e1809169 (patch)
tree0365c686e53fcf6c38ac628a319bacdfedddc567
parentcc68c2c889d0bdaff2e4f5da13756f2f5cafd4fe (diff)
source.mk: Adjust cleanup logic
-rw-r--r--source.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/source.mk b/source.mk
index 8795d1e..ee7edc4 100644
--- a/source.mk
+++ b/source.mk
@@ -13,8 +13,11 @@ $(source_archive):
$(gpg) --keyserver hkp://pool.sks-keyservers.net \
--recv-keys $(keys); \
rm -f ../keyring.gpg~; \
- $(gpg) --verify '$(upstream_archive).sig' && \
- mv '$(upstream_archive)' '$(source_archive)'
+ if ! $(gpg) --verify '$(upstream_archive).sig'; then \
+ rm -Rf gnupghome/; \
+ exit 1; \
+ fi
rm -Rf gnupghome/
+ mv '$(upstream_archive)' '$(source_archive)'
source: $(source_archive)