Skip to content

Commit 565f99e

Browse files
authored
fix(stn): add case if the password was not set in the config (#3578)
1 parent 534e43e commit 565f99e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lgsm/functions/info_game.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1741,6 +1741,9 @@ fn_info_game_stn(){
17411741
port=$(sed -nr 's/^ServerPort=([0-9]+)/\1/p' "${servercfgfullpath}")
17421742
serverpassword=$(sed -nr 's/^ServerPassword=(.*)$/\1/p' "${servercfgfullpath}")
17431743
queryport=$((port + 1))
1744+
1745+
# Not set
1746+
serverpassword=${serverpassword:-"NOT SET"}
17441747
else
17451748
servername="${unavailable}"
17461749
configip=${configip:-"0.0.0.0"}

0 commit comments

Comments
 (0)