diff --git a/asdf.sh b/asdf.sh index 3622efc1..7faf32d9 100644 --- a/asdf.sh +++ b/asdf.sh @@ -7,7 +7,8 @@ else fi export ASDF_DIR -ASDF_DIR="$(dirname "$current_script_path" &> /dev/null || exit 1; pwd)" +ASDF_DIR="$(dirname "$current_script_path")" +[ -d "$ASDF_DIR" ] || return # Add asdf to PATH #