mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 17:48:18 -07:00
20 lines
456 B
Bash
20 lines
456 B
Bash
# -*- sh -*-
|
|
|
|
plugin_push_command() {
|
|
local plugin_name=$1
|
|
if [ "$plugin_name" = "--all" ]; then
|
|
for dir in "$(asdf_data_dir)"/plugins/*; do
|
|
echo "Pushing $(basename "$dir")..."
|
|
(cd "$dir" && git push)
|
|
done
|
|
else
|
|
local plugin_path
|
|
plugin_path=$(get_plugin_path "$plugin_name")
|
|
check_if_plugin_exists "$plugin_name"
|
|
echo "Pushing $plugin_name..."
|
|
(cd "$plugin_path" && git push)
|
|
fi
|
|
}
|
|
|
|
plugin_push_command "$@"
|