Do not use double brackets for 2 conditions check in shell scripts, instead use [ cond1 ] && [ cond2 ]

This commit is contained in:
Gautier Pelloux-Prayer 2015-01-15 11:25:26 +01:00
parent de248f3021
commit f4b8ab2d97

View file

@ -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