From 508d01ae8462a602b630f08cafb2cf6c9fe87ba9 Mon Sep 17 00:00:00 2001 From: dnomd343 Date: Mon, 31 May 2021 17:47:25 +0800 Subject: [PATCH] fix: shell format --- asset.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/asset.sh b/asset.sh index d5cbbd8..1eb8112 100644 --- a/asset.sh +++ b/asset.sh @@ -41,12 +41,15 @@ case "$MACHINE" in 'arm64') XRAY_PKG_NAME="Xray-linux-arm64-v8a.zip" ;; + *) + exit 1 + ;; esac get_github_latest_version "XTLS/Xray-core" wget -P $XRAY_DIR/pkg "https://github.com/XTLS/Xray-core/releases/download/$VERSION/$XRAY_PKG_NAME" -unzip $XRAY_DIR/pkg/$XRAY_PKG_NAME -d /$XRAY_DIR/pkg -cp $XRAY_DIR/pkg/xray $XRAY_DIR +unzip $XRAY_DIR/pkg/$XRAY_PKG_NAME -d $XRAY_DIR/pkg +mv $XRAY_DIR/pkg/xray $XRAY_DIR rm -rf $XRAY_DIR/pkg get_github_latest_version "Loyalsoldier/v2ray-rules-dat"