1
0
Fork 0

safety check

This commit is contained in:
Frank Celler 2019-04-21 00:33:46 +02:00
parent 2de9510051
commit 91dea961f8
1 changed files with 4 additions and 4 deletions

View File

@ -34,13 +34,13 @@ fi
declare -a EXTRA_ARGS
if [ -z "${ARANGOSH}" ]; then
if [ -x build/bin/arangosh ]; then
if [ -x build/bin/arangosh -a ! -d build/bin/arangosh ]; then
ARANGOSH="build/bin/arangosh${EXT}"
elif [ -x bin/arangosh ]; then
elif [ -x bin/arangosh -a ! -d bin/arangosh ]; then
ARANGOSH="bin/arangosh${EXT}"
elif [ -x arangosh ]; then
elif [ -x arangosh -a ! -d arangosh ]; then
ARANGOSH="arangosh${EXT}"
elif [ -x usr/bin/arangosh ]; then
elif [ -x usr/bin/arangosh -a ! -d usr/bin/arangosh ]; then
ARANGOSH="usr/bin/arangosh${EXT}"
else
ARANGOSH="$(find "${EXEC_PATH}" -name "arangosh${EXT}" -perm -001 -type f | head -n 1)"