From de248f3021ea49cdf70fec9713388c0de9231c0b Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Wed, 14 Jan 2015 12:50:23 +0100 Subject: [PATCH] Use correct way to detect a symbolic link --- check_tools.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check_tools.sh b/check_tools.sh index 3472dc387..86a336eb3 100755 --- a/check_tools.sh +++ b/check_tools.sh @@ -35,8 +35,8 @@ if ! (find submodules/linphone/mediastreamer2 -mindepth 1 2>/dev/null | grep -q echo_err "Missing some git submodules. Did you run 'git submodule update --init --recursive'?" fi # Android NDK should NOT be simlinked! -if [ ! -f "$ANDROID_NDK" ]; then - echo_err "ANDROID_NDK=$ANDROID_NDK is not existing or is a symbolic link. Please use a correct folder" +if [[ -L "$ANDROID_NDK" && -d "$ANDROID_NDK" ]]; then + echo_err "ANDROID_NDK=$ANDROID_NDK must NOT be a symbolic link, please modify it accordingly" fi if [ $error_on_quit = 0 ]; then