Răsfoiți Sursa

refactor: simplify directory creation in install_config.sh

This commit simplifies the code for creating config directories in the install_config.sh file. Instead of using separate variables for each directory path, it now uses a single variable to create the necessary directories. This improves readability and reduces redundancy in the code.
Daniel Gibbs 2 ani în urmă
părinte
comite
1444d13544
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      lgsm/modules/install_config.sh

+ 2 - 2
lgsm/modules/install_config.sh

@@ -12,10 +12,10 @@ fn_check_cfgdir() {
 	changes=""
 	if [ "${shortname}" == "dst" ]; then
 		echo -en "creating config directory [ ${italic}${clustercfgdir}${default} ]"
-		changes+=$(mkdir -pv "${clustercfgfullpath}")
+		changes+=$(mkdir -pv "${clustercfgdir}")
 	elif [ "${shortname}" == "arma3" ]; then
 		echo -en "creating config directory [ ${italic}${networkcfgdir}${default} ]"
-		changes+=$(mkdir -pv "${networkcfgfullpath}")
+		changes+=$(mkdir -pv "${networkcfgdir}")
 	else
 		echo -en "creating config directory [ ${italic}${servercfgdir}${default} ]"
 		changes+=$(mkdir -pv "${servercfgdir}")