mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
Clean up utils
Whitespace and remove dead function
This commit is contained in:
parent
511535b750
commit
280581c566
11
lib/utils.sh
11
lib/utils.sh
@ -2,7 +2,6 @@ asdf_version() {
|
||||
echo "0.2.0-dev"
|
||||
}
|
||||
|
||||
|
||||
asdf_dir() {
|
||||
if [ -z $ASDF_DIR ]; then
|
||||
local current_script_path=${BASH_SOURCE[0]}
|
||||
@ -12,7 +11,6 @@ asdf_dir() {
|
||||
echo $ASDF_DIR
|
||||
}
|
||||
|
||||
|
||||
get_install_path() {
|
||||
local plugin=$1
|
||||
local install_type=$2
|
||||
@ -27,7 +25,6 @@ get_install_path() {
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
check_if_plugin_exists() {
|
||||
# Check if we have a non-empty argument
|
||||
if [ -z "${1+set}" ]; then
|
||||
@ -51,18 +48,10 @@ check_if_version_exists() {
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
get_version_part() {
|
||||
IFS='@' read -a version_info <<< "$1"
|
||||
echo ${version_info[$2]}
|
||||
}
|
||||
|
||||
|
||||
get_plugin_path() {
|
||||
echo $(asdf_dir)/plugins/$1
|
||||
}
|
||||
|
||||
|
||||
display_error() {
|
||||
echo >&2 $1
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user