fix bug sha256 in DOWNLOAD_URL
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user