]> git.corax.cc Git - toolbox/commit
include/inst: Split _inst_handle_opt() to fix exit behavior
authorMatthias Kruk <m@m10k.eu>
Sat, 19 Nov 2022 11:02:26 +0000 (20:02 +0900)
committerMatthias Kruk <m@m10k.eu>
Sat, 19 Nov 2022 11:02:26 +0000 (20:02 +0900)
commitcf045a4227241b7cca2caa940bb048243bc5e704
treea0926f60f4d9b321a13b8da7daebf74ef6b035c3
parent6ce1e2d8af3015b20ed89fe4f4a5c96e19644e2c
include/inst: Split _inst_handle_opt() to fix exit behavior

The handler for `--stop' and `--list' options always exits, even
when the option it was invoked for was neither.

This commit splits the handler into two handlers that serve only
one option, avoiding the incorrect behavior.
include/inst.sh