mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-11-20 08:09:18 +01:00
added check
This commit is contained in:
parent
6e5deb836f
commit
76f0e0792a
@ -2065,7 +2065,7 @@ download_url="https://github.com/p0358/vdf-parser/archive/refs/heads/master.zip"
|
||||
wget -P "$download_dir" "$download_url"
|
||||
|
||||
# Extract the downloaded zip file
|
||||
unzip "$download_dir"/master.zip -d "$download_dir"
|
||||
unzip "$download_dir"/master.zip -d "$download_dir" > /dev/null
|
||||
|
||||
# Move the extracted files to the desired location
|
||||
mv "$download_dir"/vdf-parser-master/* "$download_dir"
|
||||
@ -2082,6 +2082,9 @@ if [[ -f "$steam_dir/config/config.vdf" ]]; then
|
||||
# Get the steamid of the currently logged in user
|
||||
steamid=$(grep -oP 'SteamID"\s+"\K[0-9]+' "$steam_dir/config/config.vdf")
|
||||
|
||||
# Print out the value of steamid for debugging purposes
|
||||
echo "steamid: $steamid"
|
||||
|
||||
# Convert steamid to steamid3
|
||||
steamid3=$((steamid - 76561197960265728))
|
||||
|
||||
@ -2135,12 +2138,6 @@ fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Delete NonSteamLaunchersInstallation subfolder in Downloads folder
|
||||
rm -rf ~/Downloads/NonSteamLaunchersInstallation
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user