[Android] compile-libvlc: Fix comparison

Marvin Scholz git at videolan.org
Fri Oct 18 17:34:48 CEST 2019


vlc-android | branch: master | Marvin Scholz <epirat07 at gmail.com> | Fri Oct 18 16:46:03 2019 +0200| [bcaf9bac056539689b40c4b7a8ca20df9de9a17b] | committer: Marvin Scholz

compile-libvlc: Fix comparison

Using test with == is undefined in sh, better use = which works
fine in all cases.

> https://code.videolan.org/videolan/vlc-android/commit/bcaf9bac056539689b40c4b7a8ca20df9de9a17b
---

 compile-libvlc.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compile-libvlc.sh b/compile-libvlc.sh
index f2221ddb0..2d48f4888 100755
--- a/compile-libvlc.sh
+++ b/compile-libvlc.sh
@@ -49,7 +49,7 @@ if [ -z "$MAKEFLAGS" ]; then
     MAKEFLAGS=
     if which nproc >/dev/null; then
         MAKEFLAGS=-j$(nproc)
-    elif [ "$UNAMES" == "Darwin" ] && which sysctl >/dev/null; then
+    elif [ "$UNAMES" = "Darwin" ] && which sysctl >/dev/null; then
         MAKEFLAGS=-j$(sysctl -n machdep.cpu.thread_count)
     fi
 fi



More information about the Android mailing list