Skip to content

Commit 0ed82dc

Browse files
authored
fix skill issue
credits to @xlc-dev
1 parent f55c8f1 commit 0ed82dc

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

get-dependencies.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/bin/sh
22

3-
exit 1
4-
53
set -eu
64
ARCH="$(uname -m)"
75
DEB_SOURCE="https://cursor.com/download"
@@ -38,14 +36,14 @@ chmod +x ./get-debloated-pkgs.sh
3836
echo "Getting Cursor..."
3937
echo "---------------------------------------------------------------"
4038
case "$ARCH" in # they use AMD64 and ARM64 for the deb links
41-
x86_64) deb_arch=amd64;;
39+
x86_64) deb_arch=x64;;
4240
aarch64) deb_arch=arm64;;
4341
esac
4442

4543
DEB_LINK=$(
4644
wget --retry-connrefused --tries=30 "$DEB_SOURCE" -O - \
47-
| sed 's/[()",{} ]/\n/g' \
48-
| grep -o "https.*downloads.*linux.*$deb_arch.*deb" \
45+
| sed 's/[()",{} ]/\n/g' \
46+
| grep "https.*download.*linux.*$deb_arch.*deb" \
4947
| head -1
5048
)
5149

0 commit comments

Comments
 (0)