From 4b5bd8687692b70a0d0d29229f3c1253c89f5fdc Mon Sep 17 00:00:00 2001 From: Elliot Nunn Date: Sat, 21 Dec 2019 06:00:11 +0800 Subject: [PATCH] Return nonzero status on MPW error --- bin/build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/build b/bin/build index f3f1a04..c912ecb 100755 --- a/bin/build +++ b/bin/build @@ -208,3 +208,7 @@ os.remove(config.hfsimg) if config.passthru is not None: wsheet = vol['MPW']['Worksheet'].data.decode('mac_roman').replace('\r', '\n') print(wsheet, end='') + + # Slightly hacky way to extract an exit status + if re.search(r'^### MPW Shell - Execution of .* terminated', wsheet, re.MULTILINE): + sys.exit(1)