Skip to content

Commit 8b7a54d

Browse files
committed
Return exit codes from subcommands
1 parent 410f5b3 commit 8b7a54d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/venv-cli/venv.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,10 +413,12 @@ venv::main() {
413413
*)
414414
echo $"Unknown subcommand '${subcommand}'. Try 'venv --help' to see available commands."
415415
;;
416-
417416
esac
417+
418+
return "$?"
418419
}
419420

420421
venv() {
421422
venv::main "$@"
423+
return "$?"
422424
}

0 commit comments

Comments
 (0)