Browse Source

fix arch detection in install release script

v2ray 9 năm trước cách đây
mục cha
commit
8f9b23a6ab
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      release/install-release.sh

+ 3 - 3
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