From ea7517146285561ea71d95ec91f2b3472afa67c1 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Fri, 13 May 2016 17:43:59 +0100 Subject: [PATCH] will highlight is config missing --- lgsm/functions/command_details.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lgsm/functions/command_details.sh b/lgsm/functions/command_details.sh index b8f5fcbc6..6ae55f7e1 100644 --- a/lgsm/functions/command_details.sh +++ b/lgsm/functions/command_details.sh @@ -216,7 +216,11 @@ fn_details_script(){ # Config file location if [ -n "${servercfgfullpath}" ]; then - echo -e "\e[34mConfig file:\t\e[0m${servercfgfullpath}" + if [ -f "${servercfgfullpath}" ]; then + echo -e "\e[34mConfig file:\t\e[0m${servercfgfullpath}" + else + echo -e "\e[34mConfig file:\t\e[0m\e[0;31m${servercfgfullpath}\e[0m (\e[0;31mFILE MISSING\e[0m)" + fi fi # Network config file location (ARMA 3) @@ -440,7 +444,7 @@ fn_details_teeworlds(){ } | column -s $'\t' -t } - fn_details_terraria(){ +fn_details_terraria(){ echo -e "netstat -atunp | grep TerrariaServer" echo -e "" {