Skip to content

Commit e081b95

Browse files
authored
Update steam
1 parent 29cd99c commit e081b95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

programs/x86_64/steam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ printf '\n%s' "rm -f /usr/local/share/applications/$APP-AM.desktop" >> ../remove
1212
chmod a+x ../remove || exit 1
1313

1414
# DOWNLOAD AND PREPARE THE APP, $version is also used for updates
15-
version=$(curl -Ls https://api.github.com/repos/ivan-hc/Steam-appimage/releases | sed 's/[()",{} ]/\n/g' | grep -oi "https.*mage$" | grep -vi "i386\|i686\|aarch64\|arm64\|armv7l" | head -1)
15+
version=$(curl -Ls https://api.github.com/repos/ivan-hc/Steam-appimage/releases/latest | sed 's/[()",{} ]/\n/g' | grep -oi "https.*mage$" | grep -vi "i386\|i686\|aarch64\|arm64\|armv7l" | head -1)
1616
wget "$version" || exit 1
1717
#wget "$version.zsync" 2> /dev/null # Comment out this line if you want to use zsync
1818
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
@@ -33,7 +33,7 @@ set -u
3333
APP=steam
3434
SITE="ivan-hc/Steam-appimage"
3535
version0=$(cat "/opt/$APP/version")
36-
version=$(curl -Ls https://api.github.com/repos/ivan-hc/Steam-appimage/releases | sed 's/[()",{} ]/\n/g' | grep -oi "https.*mage$" | grep -vi "i386\|i686\|aarch64\|arm64\|armv7l" | head -1)
36+
version=$(curl -Ls https://api.github.com/repos/ivan-hc/Steam-appimage/releases/latest | sed 's/[()",{} ]/\n/g' | grep -oi "https.*mage$" | grep -vi "i386\|i686\|aarch64\|arm64\|armv7l" | head -1)
3737
[ -n "$version" ] || { echo "Error getting link"; exit 1; }
3838
if [ "$version" != "$version0" ] || [ -e /opt/"$APP"/*.zsync ]; then
3939
mkdir "/opt/$APP/tmp" && cd "/opt/$APP/tmp" || exit 1

0 commit comments

Comments
 (0)