diff --git a/setup.sh b/setup.sh index 1bcc4d6..454bead 100755 --- a/setup.sh +++ b/setup.sh @@ -14,7 +14,7 @@ BINARY_NAME="cli-proxy-api" # ===== STEP 1: DOWNLOAD & EXTRACT ===== echo "===> Fetching latest release info..." -DOWNLOAD_URL=$(curl -s $REPO_API | grep "browser_download_url" | grep "linux_aarch64.tar.gz" | cut -d '"' -f 4) +DOWNLOAD_URL=$(curl -s $REPO_API | grep "browser_download_url" | grep "linux_aarch64.tar.gz" | grep -v "\.sha256" | cut -d '"' -f 4) if [ -z "$DOWNLOAD_URL" ]; then echo "❌ Cannot find linux_aarch64.tar.gz in release" @@ -22,7 +22,7 @@ if [ -z "$DOWNLOAD_URL" ]; then fi echo "===> Downloading: $DOWNLOAD_URL" -wget -qO "$TMP_DIR/package.tar.gz" "$DOWNLOAD_URL" +wget -O "$TMP_DIR/package.tar.gz" "$DOWNLOAD_URL" echo "===> Extracting..." tar -xzf "$TMP_DIR/package.tar.gz" -C "$TMP_DIR"