فهرست منبع

fix(core_exit): correct log file path for dev-debug module order

Daniel Gibbs 11 ماه پیش
والد
کامیت
2fd56ebeca
2فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 2 2
      lgsm/modules/core_exit.sh
  2. 1 1
      linuxgsm.sh

+ 2 - 2
lgsm/modules/core_exit.sh

@@ -13,8 +13,8 @@ fn_exit_dev_debug() {
 		echo -e "${moduleselfname} exiting with code: ${exitcode}"
 		if [ -f "${rootdir}/dev-debug.log" ]; then
 			grep -a "modulefile=" "${rootdir}/dev-debug.log" | sed 's/modulefile=//g' > "${rootdir}/dev-debug-module-order.log"
-		elif [ -f "${lgsmlogdir}/dev-debug.log" ]; then
-			grep -a "modulefile=" "${lgsmlogdir}/dev-debug.log" | sed 's/modulefile=//g' > "${rootdir}/dev-debug-module-order.log"
+		elif [ -f "${logdir}/dev-debug.log" ]; then
+			grep -a "modulefile=" "${logdir}/dev-debug.log" | sed 's/modulefile=//g' > "${logdir}/dev-debug-module-order.log"
 		fi
 	fi
 }

+ 1 - 1
linuxgsm.sh

@@ -32,7 +32,7 @@ rootdir=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
 selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
 lgsmdir="${rootdir}/lgsm"
 [ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log"
-lgsmlogdir="${logdir}/lgsm"
+lgsmlogdir="${logdir}/script"
 steamcmddir="${HOME}/.steam/steamcmd"
 [ -n "${LGSM_SERVERFILES}" ] && serverfiles="${LGSM_SERVERFILES}" || serverfiles="${rootdir}/serverfiles"
 modulesdir="${lgsmdir}/modules"