From 111da813a18fab13bdca612132241218f5c677a2 Mon Sep 17 00:00:00 2001 From: chubtub <43381989+chubtub@users.noreply.github.com> Date: Thu, 1 Feb 2024 15:11:55 -0500 Subject: [PATCH] Exit with an error code if validate fails --- tools/tcg_rim_tool/src/main/java/hirs/swid/Main.java | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/tcg_rim_tool/src/main/java/hirs/swid/Main.java b/tools/tcg_rim_tool/src/main/java/hirs/swid/Main.java index d9e2bcc1..894ebe83 100644 --- a/tools/tcg_rim_tool/src/main/java/hirs/swid/Main.java +++ b/tools/tcg_rim_tool/src/main/java/hirs/swid/Main.java @@ -57,6 +57,7 @@ public class Main { System.out.println("Successfully verified " + verifyFile); } else { System.out.println("Failed to verify " + verifyFile); + System.exit(1); } } else { System.out.println("Need a RIM file to validate!");