mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
Simplify asdf_data_dir function
This commit is contained in:
parent
6d8d77f51d
commit
1dc939bb52
@ -40,10 +40,8 @@ asdf_data_dir() {
|
||||
|
||||
if [ -n "${ASDF_DATA_DIR}" ]; then
|
||||
data_dir="${ASDF_DATA_DIR}"
|
||||
elif [[ $EUID -ne 0 ]]; then
|
||||
data_dir="$HOME/.asdf"
|
||||
else
|
||||
data_dir="$(asdf_dir)"
|
||||
data_dir="$HOME/.asdf"
|
||||
fi
|
||||
|
||||
echo "$data_dir"
|
||||
|
Loading…
Reference in New Issue
Block a user