From 1444d1354403415329de1f30234aa04c12c0c324 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Fri, 29 Sep 2023 10:30:59 +0100 Subject: [PATCH] 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. --- lgsm/modules/install_config.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lgsm/modules/install_config.sh b/lgsm/modules/install_config.sh index 931fb5bca9..1da3873aaa 100644 --- a/lgsm/modules/install_config.sh +++ b/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}")