asdf/lib/commands/plugin-add.sh
2015-05-17 23:50:51 +05:30

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
}