aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlaunchers/bash/clj-env-dir5
1 files changed, 5 insertions, 0 deletions
diff --git a/launchers/bash/clj-env-dir b/launchers/bash/clj-env-dir
index 7858cf91..9f2b2044 100755
--- a/launchers/bash/clj-env-dir
+++ b/launchers/bash/clj-env-dir
@@ -43,6 +43,11 @@ set -o errexit
set -o nounset
#set -o xtrace
+function die { echo "$1" 1>&2; exit 1; }
+
+[ -d "${CLOJURE_EXT:-}" ] || die \
+ "CLOJURE_EXT=\"${CLOJURE_EXT:-}\": directory not found"
+
EXT="$(find ${CLOJURE_EXT} -mindepth 1 -maxdepth 1 -print0 | tr \\0 \:)"
CLASSPATH="${EXT%:}${CLASSPATH:+:${CLASSPATH}}"
export CLASSPATH