Simplify asdf_data_dir function

This commit is contained in:
Trevor Brown 2020-02-05 07:46:24 -05:00
parent 6d8d77f51d
commit 1dc939bb52

View File

@ -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"