From 6d63496528910cde05b23f38462b59e40e178ff9 Mon Sep 17 00:00:00 2001 From: Trevor Brown Date: Sat, 14 Jul 2018 09:47:33 -0400 Subject: [PATCH] Switch from `return` to `exit 1` when ASDF_DIR is not a dir. --- asdf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asdf.sh b/asdf.sh index 7faf32d9..3908df01 100644 --- a/asdf.sh +++ b/asdf.sh @@ -8,7 +8,7 @@ fi export ASDF_DIR ASDF_DIR="$(dirname "$current_script_path")" -[ -d "$ASDF_DIR" ] || return +[ -d "$ASDF_DIR" ] || exit 1 # Add asdf to PATH #