Commit d6ddbcf2 authored by Mikhail Tergoev's avatar Mikhail Tergoev

Merge branch 'alex2844-fix/getSteamId' into devel

parents 031da430 84792464
...@@ -86,7 +86,7 @@ getSteamId() { ...@@ -86,7 +86,7 @@ getSteamId() {
local file=$(find "$(dirname "${NOSTAPPPATH}")" -type f \( ${conditions# -o} \) -print -quit 2>/dev/null) local file=$(find "$(dirname "${NOSTAPPPATH}")" -type f \( ${conditions# -o} \) -print -quit 2>/dev/null)
if [[ -n "${file}" ]]; then if [[ -n "${file}" ]]; then
if [[ "${file}" == *"steam_appid.txt" ]]; then if [[ "${file}" == *"steam_appid.txt" ]]; then
SteamAppId=$(cat "${file}" | tr -d '\r\n') SteamAppId=$(cat "${file}" | tr -d '[:space:]\r\n')
else else
SteamAppId=$(grep -i "^AppId=" "${file}" | cut -d'=' -f2 | head -1 | tr -d '\r\n') SteamAppId=$(grep -i "^AppId=" "${file}" | cut -d'=' -f2 | head -1 | tr -d '\r\n')
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment