Update NonSteamLaunchers.sh

~added space for multiple ids
This commit is contained in:
Roy 2024-01-18 16:32:33 -08:00 committed by GitHub
parent 03b64c8676
commit 45c81f81c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2561,7 +2561,7 @@ if [[ -f "${logged_in_home}/.steam/root/config/loginusers.vdf" ]]; then
most_recent_user=$(sed -n '/"users"/,/"MostRecent" "1"/p' "${logged_in_home}/.steam/root/config/loginusers.vdf") most_recent_user=$(sed -n '/"users"/,/"MostRecent" "1"/p' "${logged_in_home}/.steam/root/config/loginusers.vdf")
# Extract the SteamIDs from the block of text for the most recent user # Extract the SteamIDs from the block of text for the most recent user
steamids=$(echo "$most_recent_user" | grep -o '[0-9]\{17\}') steamids=$(echo "$most_recent_user" | grep -o '[0-9]\{17\}' | tr '\n' ' ')
# Loop over each SteamID # Loop over each SteamID
for steamid in $steamids; do for steamid in $steamids; do