We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f55c8f1 commit 0ed82dcCopy full SHA for 0ed82dc
1 file changed
get-dependencies.sh
@@ -1,7 +1,5 @@
1
#!/bin/sh
2
3
-exit 1
4
-
5
set -eu
6
ARCH="$(uname -m)"
7
DEB_SOURCE="https://cursor.com/download"
@@ -38,14 +36,14 @@ chmod +x ./get-debloated-pkgs.sh
38
36
echo "Getting Cursor..."
39
37
echo "---------------------------------------------------------------"
40
case "$ARCH" in # they use AMD64 and ARM64 for the deb links
41
- x86_64) deb_arch=amd64;;
+ x86_64) deb_arch=x64;;
42
aarch64) deb_arch=arm64;;
43
esac
44
45
DEB_LINK=$(
46
wget --retry-connrefused --tries=30 "$DEB_SOURCE" -O - \
47
- | sed 's/[()",{} ]/\n/g' \
48
- | grep -o "https.*downloads.*linux.*$deb_arch.*deb" \
+ | sed 's/[()",{} ]/\n/g' \
+ | grep "https.*download.*linux.*$deb_arch.*deb" \
49
| head -1
50
)
51
0 commit comments