From 7999b09ef48d924fb0bd00aead8c69c57865399c Mon Sep 17 00:00:00 2001 From: H3o66 Date: Tue, 28 Sep 2021 00:31:01 +0200 Subject: [PATCH] fix(stn): add case if the password was not set in the config --- lgsm/functions/info_game.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lgsm/functions/info_game.sh b/lgsm/functions/info_game.sh index 46bcece5b..a961a41f3 100644 --- a/lgsm/functions/info_game.sh +++ b/lgsm/functions/info_game.sh @@ -1741,6 +1741,9 @@ fn_info_game_stn(){ port=$(sed -nr 's/^ServerPort=([0-9]+)/\1/p' "${servercfgfullpath}") serverpassword=$(sed -nr 's/^ServerPassword=(.*)$/\1/p' "${servercfgfullpath}") queryport=$((port + 1)) + + # Not set + serverpassword=${serverpassword:-"NOT SET"} else servername="${unavailable}" configip=${configip:-"0.0.0.0"}