From 8f9b23a6ab6811380043a82ab582d04e16d442d0 Mon Sep 17 00:00:00 2001 From: v2ray Date: Sat, 9 Jan 2016 21:50:27 +0100 Subject: [PATCH] fix arch detection in install release script --- release/install-release.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/release/install-release.sh b/release/install-release.sh index 6f72e666..4e18c421 100755 --- a/release/install-release.sh +++ b/release/install-release.sh @@ -7,11 +7,11 @@ VER="v1.2" ARCH=$(uname -m) VDIS="64" -if [ "$ARCH" == "i686" ] || [ "$ARCH" == "i386" ]; then +if [[ "$ARCH" == "i686" ]] || [[ "$ARCH" == "i386" ]]; then VDIS="32" -elif [ "$ARCH" == *"armv7"* ]; then +elif [[ "$ARCH" == *"armv7"* ]]; then VDIS="arm" -elif [ "$ARCH" == *"armv8"* ]; then +elif [[ "$ARCH" == *"armv8"* ]]; then VDIS="arm64" fi