Skip to content

Commit

Permalink
Correctly report unsigned AppImages
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAssassin committed Aug 17, 2022
1 parent e2a316f commit 82ee61b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/signing/validate_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ int main(int argc, char** argv) {

UpdatableAppImage appImage(args.pos.front());

if (appImage.readSignature().empty()) {
std::cerr << "Error: AppImage not signed" << std::endl;
return 1;
}

SignatureValidator validator;
const auto result = validator.validate(appImage);

Expand Down

0 comments on commit 82ee61b

Please sign in to comment.