瀏覽代碼

fixes issues #646

Daniel Gibbs 10 年之前
父節點
當前提交
ebbd32387a
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      functions/check_steamcmd.sh

+ 3 - 1
functions/check_steamcmd.sh

@@ -33,7 +33,9 @@ else
 	steamcmddir="${rootdir}/steamcmd"
 	if [ ! -f "${steamcmddir}/steamcmd.sh" ]; then
 		fn_printwarnnl "SteamCMD is missing"
-		fn_scriptlog "SteamCMD is missing"
+		if [ -d "${scriptlogdir}" ]; then
+			fn_scriptlog "SteamCMD is missing"
+		fi	
 		sleep 1
 		if [ ! -d "${steamcmddir}" ]; then
 			mkdir -v "${steamcmddir}"