Skip to content

Commit

Permalink
refactor: simplify directory creation in install_config.sh
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dgibbs64 committed Sep 29, 2023
1 parent cfe8b30 commit 1444d13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lgsm/modules/install_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit 1444d13

Please sign in to comment.