Skip to content

Commit

Permalink
Return exit codes from subcommands
Browse files Browse the repository at this point in the history
  • Loading branch information
connesy committed Mar 6, 2024
1 parent 410f5b3 commit 8b7a54d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/venv-cli/venv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -413,10 +413,12 @@ venv::main() {
*)
echo $"Unknown subcommand '${subcommand}'. Try 'venv --help' to see available commands."
;;

esac

return "$?"
}

venv() {
venv::main "$@"
return "$?"
}

0 comments on commit 8b7a54d

Please sign in to comment.