瀏覽代碼

added servercfgfullpath dir check for NS2

Daniel Gibbs 9 年之前
父節點
當前提交
11f4a30356
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      lgsm/functions/command_details.sh

+ 2 - 0
lgsm/functions/command_details.sh

@@ -227,6 +227,8 @@ fn_details_script(){
 		if [ -n "${servercfgfullpath}" ]; then
 			if [ -f "${servercfgfullpath}" ]; then
 				echo -e "${blue}Config file:\t${default}${servercfgfullpath}"
+			elif [ -d "${servercfgfullpath}" ]; then
+				echo -e "${blue}Config dir:\t${default}${servercfgfullpath}"
 			else
 				echo -e "${blue}Config file:\t${default}${red}${servercfgfullpath}${default} (${red}FILE MISSING${default})"
 			fi