mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
plugin-update: argument validation
This commit is contained in:
parent
f9572739f6
commit
ccefa996dc
@ -1,4 +1,9 @@
|
||||
plugin_update_command() {
|
||||
if [ "$#" -ne 1 ]; then
|
||||
display_error "usage: asdf plugin-update {<name> | --all}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
local plugin_name=$1
|
||||
if [ "$plugin_name" = "--all" ]; then
|
||||
for dir in $(asdf_dir)/plugins/*; do
|
||||
|
Loading…
Reference in New Issue
Block a user