mirror of
https://github.com/allankoechke/InstallCursorEditorLinux.git
synced 2026-11-30 17:04:14 +00:00
fix(curl): curl wasn't following redirects from cursor's api
This commit is contained in:
@@ -6,7 +6,7 @@ function download_cursor() {
|
||||
|
||||
# Get the download URL from the API
|
||||
echo -e "🔍 ${CYAN}Fetching latest Cursor version...${NC}"
|
||||
APPIMAGE_URL=$(curl -s "$URL_CURSOR_DOWN" | grep -o '"downloadUrl":"[^"]*"' | cut -d'"' -f4)
|
||||
APPIMAGE_URL=$(curl -s -L "$URL_CURSOR_DOWN" | grep -o '"downloadUrl":"[^"]*"' | cut -d'"' -f4)
|
||||
|
||||
# Extract the version from the URL
|
||||
VERSION=$(echo "$APPIMAGE_URL" | grep -o 'Cursor-[0-9.]*' | cut -d'-' -f2)
|
||||
|
||||
Reference in New Issue
Block a user