diff --git a/postinstall.sh b/postinstall.sh index f46a124..0427f9e 100644 --- a/postinstall.sh +++ b/postinstall.sh @@ -552,8 +552,8 @@ install_antigravity() { sudo dnf install -y python3 nautilus-python curl tar log_info "Fetching latest download URLs from Google..." - AG_URL=$(curl -s https://antigravity.google/download | grep -oP 'https://[^"]+linux-x64/Antigravity\.tar\.gz' | head -n 1) - AG_IDE_URL=$(curl -s https://antigravity.google/download | grep -oP 'https://[^"]+linux-x64/Antigravity%20IDE\.tar\.gz' | head -n 1) + AG_URL=$(curl -s https://antigravity.google/download | grep -oP 'https://\S+linux-x64/Antigravity\.tar\.gz' | head -n 1) + AG_IDE_URL=$(curl -s https://antigravity.google/download | grep -oP 'https://\S+linux-x64/Antigravity%20IDE\.tar\.gz' | head -n 1) if [ -z "$AG_URL" ] || [ -z "$AG_IDE_URL" ]; then log_error "Failed to resolve Antigravity download URLs."