mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 17:48:18 -07:00
12 lines
254 B
Bash
12 lines
254 B
Bash
plugin_add_command() {
|
|
local package_name=$1
|
|
local source_url=$2
|
|
local plugin_path=$(get_plugin_path $package_name)
|
|
|
|
mkdir -p $(asdf_dir)/sources
|
|
git clone $source_url $plugin_path
|
|
if [ $? -eq 0 ]; then
|
|
chmod +x $plugin_path/bin/*
|
|
fi
|
|
}
|