asdf/lib/commands/plugin-push.sh

17 lines
404 B
Bash
Raw Normal View History

#!/usr/bin/env bash
plugin_push_command() {
local plugin_name=$1
if [ "$plugin_name" = "--all" ]; then
for dir in $(asdf_dir)/plugins/*; do
2015-05-20 21:31:09 -07:00
echo "Pushing $(basename $dir)..."
(cd "$dir" && git push)
done
else
local plugin_path=$(get_plugin_path $plugin_name)
check_if_plugin_exists $plugin_name
2015-05-20 21:31:09 -07:00
echo "Pushing $plugin_name..."
(cd $plugin_path; git push)
fi
}