added check

This commit is contained in:
Roy 2023-05-27 00:58:59 -07:00 committed by GitHub
parent 6e5deb836f
commit 76f0e0792a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2065,7 +2065,7 @@ download_url="https://github.com/p0358/vdf-parser/archive/refs/heads/master.zip"
wget -P "$download_dir" "$download_url" wget -P "$download_dir" "$download_url"
# Extract the downloaded zip file # 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 # Move the extracted files to the desired location
mv "$download_dir"/vdf-parser-master/* "$download_dir" 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 # Get the steamid of the currently logged in user
steamid=$(grep -oP 'SteamID"\s+"\K[0-9]+' "$steam_dir/config/config.vdf") 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 # Convert steamid to steamid3
steamid3=$((steamid - 76561197960265728)) steamid3=$((steamid - 76561197960265728))
@ -2135,12 +2138,6 @@ fi
# Delete NonSteamLaunchersInstallation subfolder in Downloads folder # Delete NonSteamLaunchersInstallation subfolder in Downloads folder
rm -rf ~/Downloads/NonSteamLaunchersInstallation rm -rf ~/Downloads/NonSteamLaunchersInstallation