From 97b6d58b032b90d7feee1a0eda77eb59cf16d8cf Mon Sep 17 00:00:00 2001 From: Alex Smith Date: Tue, 26 Aug 2025 22:15:35 +0500 Subject: [PATCH] Trim whitespace when parsing SteamAppId --- data_from_portwine/scripts/add_in_steam.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data_from_portwine/scripts/add_in_steam.sh b/data_from_portwine/scripts/add_in_steam.sh index 3e15ff03..6ffdfdb4 100755 --- a/data_from_portwine/scripts/add_in_steam.sh +++ b/data_from_portwine/scripts/add_in_steam.sh @@ -86,7 +86,7 @@ getSteamId() { local file=$(find "$(dirname "${NOSTAPPPATH}")" -type f \( ${conditions# -o} \) -print -quit 2>/dev/null) if [[ -n "${file}" ]]; then if [[ "${file}" == *"steam_appid.txt" ]]; then - SteamAppId=$(cat "${file}" | tr -d '\r\n') + SteamAppId=$(cat "${file}" | tr -d '[:space:]\r\n') else SteamAppId=$(grep -i "^AppId=" "${file}" | cut -d'=' -f2 | head -1 | tr -d '\r\n') fi