From 62453fce68dec9b65da113875d654e7a0c9a2455 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Sun, 29 Oct 2023 11:01:25 +0100 Subject: [PATCH] Exit with "exit status" (#14) --- bin/unipoints | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/unipoints b/bin/unipoints index 1dd85f4..18eddd2 100755 --- a/bin/unipoints +++ b/bin/unipoints @@ -157,10 +157,10 @@ function main(array $args): int } try { - $rc = main($argv); + $exitStatus = main($argv); } catch (UserMessageException $x) { echo trim($x->getMessage()), "\n"; - $rc = 1; + $exitStatus = 1; } -exit($rc); +exit($exitStatus);