1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-27 22:36:12 -04:00

fix arch detection in install release script

This commit is contained in:
v2ray 2016-01-09 21:50:27 +01:00
parent 89175198ee
commit 8f9b23a6ab

View File

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