From 221252895cdf0b59a4f8801226746855bba0ca1a Mon Sep 17 00:00:00 2001 From: Graham Date: Sat, 3 Apr 2021 13:12:22 +0100 Subject: [PATCH] Check exit code of ent Signed-off-by: Graham --- .../src/main/kotlin/org/openrs2/archive/key/EntCommand.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/archive/src/main/kotlin/org/openrs2/archive/key/EntCommand.kt b/archive/src/main/kotlin/org/openrs2/archive/key/EntCommand.kt index 5a375c0e..2b328eb5 100644 --- a/archive/src/main/kotlin/org/openrs2/archive/key/EntCommand.kt +++ b/archive/src/main/kotlin/org/openrs2/archive/key/EntCommand.kt @@ -27,6 +27,11 @@ public class EntCommand : CliktCommand(name = "ent") { out.writeInt(key.k3) } } + + val status = process.waitFor() + if (status != 0) { + throw Exception("ent failed: $status") + } } } }