From f4b8ab2d9702936d4db4e49c345daabc1c6cb257 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Thu, 15 Jan 2015 11:25:26 +0100 Subject: [PATCH] Do not use double brackets for 2 conditions check in shell scripts, instead use [ cond1 ] && [ cond2 ] --- check_tools.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_tools.sh b/check_tools.sh index 86a336eb3..cba82f787 100755 --- a/check_tools.sh +++ b/check_tools.sh @@ -35,7 +35,7 @@ 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 [[ -L "$ANDROID_NDK" && -d "$ANDROID_NDK" ]]; then +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