Skip to content

Commit b476132

Browse files
authored
fix version
1 parent 0ed82dc commit b476132

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

get-dependencies.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ DEB_LINK=$(
4747
| head -1
4848
)
4949

50-
wget --retry-connrefused --tries=30 "$DEB_LINK" -O /tmp/cursor.deb
50+
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
5154
ar xvf /tmp/cursor.deb
5255
tar -xvf ./data.tar.xz
5356
rm -f ./*.xz
@@ -56,5 +59,4 @@ mv -v ./AppDir/share/cursor ./AppDir/bin
5659
cp -v ./AppDir/share/applications/cursor.desktop ./AppDir
5760
cp -v ./AppDir/share/pixmaps/co.anysphere.cursor.png ./AppDir
5861

59-
echo "$DEB_LINK" | awk -F'_' '{print $(NF-1)}' > ~/version
60-
62+
awk -F'_' '/Location:/{print $(NF-1)}' /tmp/download.log > ~/version

0 commit comments

Comments
 (0)