asdf/lib/commands/plugin-update.sh
Akash Manohar J 84097388e6 Fir dir names
2015-05-18 00:02:57 +05:30

13 lines
312 B
Bash

plugin_update_command() {
local package_name=$1
if [ "$package_name" = "--all" ]; then
for dir in $(asdf_dir)/plugins/*; do
(cd "$dir" && git pull)
done
else
local plugin_path=$(get_plugin_path $package_name)
check_if_plugin_exists $plugin_path
(cd $plugin_path; git pull)
fi
}