From d2e35dce503d2223ba1fd1b9f1ef5f5c23c881cd Mon Sep 17 00:00:00 2001 From: Lorenzo Cogotti Date: Fri, 17 Feb 2023 11:22:26 +0100 Subject: [PATCH] [examples/cat] Fix exit status. --- examples/cat.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/cat.lua b/examples/cat.lua index 0631e18..649112a 100644 --- a/examples/cat.lua +++ b/examples/cat.lua @@ -75,7 +75,5 @@ for _, path in ipairs(files) do end end -if not success then - os.exit(1) -end +osx.exit(success and 0 or 1)