Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geomesa-tools/conf-filtered/geomesa-env.sh
Original file line number Diff line number Diff line change
@@ -362,7 +362,7 @@ function geomesa_scala_console() {
# Check if we already downloaded scala
if [[ -d "${%%tools.dist.name%%_HOME}/dist/scala-%%scala.version%%/" ]]; then
scalaCMD="${%%tools.dist.name%%_HOME}/dist/scala-%%scala.version%%/bin/scala"
elif [[ $(which scala > /dev/null) -eq 0 && -n "$(scala -version 2>&1 | grep %%scala.binary.version%%)" ]]; then
elif [[ -n $(which scala 2>/dev/null) && -n "$(scala -version 2>&1 | grep %%scala.binary.version%%)" ]]; then
scalaCMD="scala"
else
read -r -p "Download scala %%scala.binary.version%% (y/n)? " confirm

0 comments on commit 64d2cda

Please sign in to comment.