All checks were successful
Update checker - cursor / check-update (push) Successful in 6s
16 lines
382 B
Bash
Executable File
16 lines
382 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
curl 'https://cursor.com/api/download?platform=linux-x64&releaseTrack=latest' -o latest.json
|
|
|
|
version="$(grep -Po '"version":"\K[^"]+' latest.json)"
|
|
url="$(grep -Po '"downloadUrl":"\K[^"]+' latest.json)"
|
|
|
|
rm latest.json
|
|
|
|
echo $version $url
|
|
|
|
sed -r "s@^(_cursor_version=).+@\1${version}@g" -i PKGBUILD
|
|
sed -r "s@^(_cursor_url=).+@\1${url}@g" -i PKGBUILD
|