From f708ce443b3d918e2cfd361d458617f0e12dab13 Mon Sep 17 00:00:00 2001 From: yeongpin Date: Mon, 10 Mar 2025 17:54:09 +0800 Subject: [PATCH] fix: Correct Syntax in Linux Installation Script - Fix syntax error in install script's conditional statements - Remove unnecessary braces and correct shell script syntax - Ensure proper handling of Linux architecture detection --- scripts/install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 856f13d..1640e62 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -134,7 +134,7 @@ install_cursor_free_vip() { echo -e "${RED}❌ New download link does not exist${NC}" exit 1 fi - } elif [[ "$OS" == "linux_x64" || "$OS" == "linux_arm64" ]]; then + elif [[ "$OS" == "linux_x64" || "$OS" == "linux_arm64" ]]; then OS="linux" binary_name="CursorFreeVIP_${VERSION}_${OS}" download_url="https://github.com/yeongpin/cursor-free-vip/releases/download/v${VERSION}/${binary_name}" @@ -144,9 +144,9 @@ install_cursor_free_vip() { echo -e "${RED}❌ New download link does not exist${NC}" exit 1 fi - } else { + else exit 1 - } + fi fi # Download file