Skip to content

Commit fb4fc79

Browse files
committed
Adding back check if directory exists
1 parent ae31774 commit fb4fc79

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

asdf.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ else
77
fi
88

99
export ASDF_DIR
10-
ASDF_DIR="$(dirname "$current_script_path" &> /dev/null || exit 1; pwd)"
10+
ASDF_DIR="$(dirname "$current_script_path")"
11+
[ -d "$ASDF_DIR" ] || return
1112

1213
# Add asdf to PATH
1314
#

0 commit comments

Comments
 (0)