0
0
mirror of https://github.com/tj/n.git synced 2024-11-24 19:46:56 +01:00

Call exit to avoid processing extra parameters

This commit is contained in:
John Gee 2019-08-12 21:32:51 +12:00
parent bff1bb01ce
commit f96e609314

10
bin/n
View File

@ -1162,16 +1162,16 @@ else
-a|--arch) shift; set_arch "$1";; # set arch and continue
bin|which) display_bin_path_for_version "$2"; exit ;;
run|as|use) shift; run_with_version "$@"; exit ;;
exec) shift; exec_with_version "$@" ;;
doctor) show_diagnostics ;;
exec) shift; exec_with_version "$@"; exit ;;
doctor) show_diagnostics; exit ;;
rm|-) shift; remove_versions "$@"; exit ;;
prune) prune_cache; exit ;;
latest) install latest; exit ;;
stable) install stable; exit ;;
lts) install lts; exit ;;
ls|list) display_versions_paths ;;
lsr|ls-remote|list-remote) shift; display_remote_versions "$1" ;;
uninstall) uninstall_installed ;;
ls|list) display_versions_paths; exit ;;
lsr|ls-remote|list-remote) shift; display_remote_versions "$1"; exit ;;
uninstall) uninstall_installed; exit ;;
i|install) shift; install "$1"; exit ;;
*) install "$1"; exit ;;
esac