Skip to content

Commit

Permalink
add exit code to latest command
Browse files Browse the repository at this point in the history
  • Loading branch information
Sledmine committed Sep 9, 2023
1 parent 56da297 commit 6c4e203
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mercury.lua
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,10 @@ local latestCmd = parser:command("latest", "Get latest Mercury version from GitH
latestCmd:description("Download latest Mercury version if available.")
latestCmd:action(function(args, name)
flagsCheck(args, true)
latest()
if not latest() then
os.exit(1)
end
os.exit(0)
end)

-- Pack command
Expand Down

0 comments on commit 6c4e203

Please sign in to comment.