mirror of
https://github.com/tj/n.git
synced 2024-11-21 18:48:57 +01:00
Call exit to avoid processing extra parameters
This commit is contained in:
parent
bff1bb01ce
commit
f96e609314
10
bin/n
10
bin/n
@ -1162,16 +1162,16 @@ else
|
|||||||
-a|--arch) shift; set_arch "$1";; # set arch and continue
|
-a|--arch) shift; set_arch "$1";; # set arch and continue
|
||||||
bin|which) display_bin_path_for_version "$2"; exit ;;
|
bin|which) display_bin_path_for_version "$2"; exit ;;
|
||||||
run|as|use) shift; run_with_version "$@"; exit ;;
|
run|as|use) shift; run_with_version "$@"; exit ;;
|
||||||
exec) shift; exec_with_version "$@" ;;
|
exec) shift; exec_with_version "$@"; exit ;;
|
||||||
doctor) show_diagnostics ;;
|
doctor) show_diagnostics; exit ;;
|
||||||
rm|-) shift; remove_versions "$@"; exit ;;
|
rm|-) shift; remove_versions "$@"; exit ;;
|
||||||
prune) prune_cache; exit ;;
|
prune) prune_cache; exit ;;
|
||||||
latest) install latest; exit ;;
|
latest) install latest; exit ;;
|
||||||
stable) install stable; exit ;;
|
stable) install stable; exit ;;
|
||||||
lts) install lts; exit ;;
|
lts) install lts; exit ;;
|
||||||
ls|list) display_versions_paths ;;
|
ls|list) display_versions_paths; exit ;;
|
||||||
lsr|ls-remote|list-remote) shift; display_remote_versions "$1" ;;
|
lsr|ls-remote|list-remote) shift; display_remote_versions "$1"; exit ;;
|
||||||
uninstall) uninstall_installed ;;
|
uninstall) uninstall_installed; exit ;;
|
||||||
i|install) shift; install "$1"; exit ;;
|
i|install) shift; install "$1"; exit ;;
|
||||||
*) install "$1"; exit ;;
|
*) install "$1"; exit ;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user