Add get_source_compile_path to return dir for keeping source

This commit is contained in:
Akash Manohar J 2016-06-30 11:14:50 +05:30
parent 724a1ab8cc
commit b1de3823a3

View File

@ -28,6 +28,21 @@ get_install_path() {
}
get_source_compile_path() {
local plugin=$1
local install_type=$2
local version=$3
mkdir -p $(asdf_dir)/sources/${plugin}
if [ $install_type = "version" ]
then
echo $(asdf_dir)/sources/${plugin}/${version}
else
echo $(asdf_dir)/sources/${plugin}/${install_type}-${version}
fi
}
check_if_plugin_exists() {
if [ ! -d $1 ]
then
@ -36,6 +51,7 @@ check_if_plugin_exists() {
fi
}
check_if_version_exists() {
local plugin=$1
local version=$2