Explorar o código

fix(details): resolve current game mode showing incorrectly

Daniel Gibbs %!s(int64=7) %!d(string=hai) anos
pai
achega
1e0ae7bd8c
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      lgsm/functions/info_messages.sh

+ 4 - 1
lgsm/functions/info_messages.sh

@@ -231,7 +231,10 @@ fn_info_message_gameserver(){
 				echo -e "${blue}Current Scenario:\t${default}${gdgamemode}"
 			fi
 		else
-			echo -e "${blue}Current Game Mode:\t${default}${gdgamemode}"
+			# Current Scenario
+			if [ -n "${gdgamemode}" ]; then
+				echo -e "${blue}Current Game Mode:\t${default}${gdgamemode}"
+			fi
 		fi
 
 		# Default Map