Merge branch 'fix/getSteamId' of github.com:alex2844/PortWINE into alex2844-fix/getSteamId

This commit is contained in:
Mikhail Tergoev
2025-08-27 12:22:55 +03:00

View File

@@ -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