diff options
author | Patrick 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) |
commit | c136e175edae9febd66fcab92b5e84a3e1809169 (patch) | |
tree | 0365c686e53fcf6c38ac628a319bacdfedddc567 | |
parent | cc68c2c889d0bdaff2e4f5da13756f2f5cafd4fe (diff) |
source.mk: Adjust cleanup logic
-rw-r--r-- | source.mk | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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) |