[STEAM] Minor refactoring (#3320)

* [STEAM] Minor refactoring

- don't remove the deb files as they are already removed with the `rm -rf ./tmp/`
- don't create ~/steam as it is already bound to be created with `mkdir -p ~/steam/tmp`
- remove superfluous characters in path

* [STEAM] Use Curl over WGet, as it's more common on most systems
This commit is contained in:
Max Parry authored and GitHub committed 2025-12-30 08:05:29 +01:00
1 parent a89704c8a7
commit 977dcc6c4c
1 file changed
+4 -8
+4 -8
View File
@@ -1,21 +1,17 @@
#!/bin/bash
# create necessary directories
mkdir -p ~/steam
mkdir -p ~/steam/tmp
mkdir -p ~/steam/tmp # makes both ~/steam and ~/steam/tmp in one cmd
cd ~/steam/tmp
# download latest deb and unpack
wget https://cdn.cloudflare.steamstatic.com/client/installer/steam.deb
curl -LO https://cdn.cloudflare.steamstatic.com/client/installer/steam.deb
ar x steam.deb
tar xf data.tar.xz
# remove deb archives, not needed anymore
rm ./*.tar.xz ./steam.deb
# move deb contents to steam folder
mv ./usr/* ../
cd ../ && rm -rf ./tmp/
mv ./usr/* ..
cd .. && rm -rf ./tmp
# create run script
echo '#!/bin/bash