Skip to content

Commit

Permalink
let GPGex throw when verification fails
Browse files Browse the repository at this point in the history
  • Loading branch information
sheerlox committed Nov 27, 2023
1 parent 3b626bb commit d0c782d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/nodelix/node_downloader.ex
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,7 @@ defmodule Nodelix.NodeDownloader do
)
end

result = GPGex.cmd(["--verify", checksums_path], keystore: keystore)

if elem(result, 0) == :error, do: raise("invalid signature")
GPGex.cmd!(["--verify", checksums_path], keystore: keystore)

Logger.debug("Checksums signature OK")

Expand Down

0 comments on commit d0c782d

Please sign in to comment.