We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ed82dc commit b476132Copy full SHA for b476132
1 file changed
get-dependencies.sh
@@ -47,7 +47,10 @@ DEB_LINK=$(
47
| head -1
48
)
49
50
-wget --retry-connrefused --tries=30 "$DEB_LINK" -O /tmp/cursor.deb
+if ! wget --retry-connrefused --tries=30 "$DEB_LINK" -O /tmp/cursor.deb 2>/tmp/download.log; then
51
+ cat /tmp/download.log
52
+ exit 1
53
+fi
54
ar xvf /tmp/cursor.deb
55
tar -xvf ./data.tar.xz
56
rm -f ./*.xz
@@ -56,5 +59,4 @@ mv -v ./AppDir/share/cursor ./AppDir/bin
59
cp -v ./AppDir/share/applications/cursor.desktop ./AppDir
57
60
cp -v ./AppDir/share/pixmaps/co.anysphere.cursor.png ./AppDir
58
61
-echo "$DEB_LINK" | awk -F'_' '{print $(NF-1)}' > ~/version
-
62
+awk -F'_' '/Location:/{print $(NF-1)}' /tmp/download.log > ~/version
0 commit comments