From 2fd6605719b96c5d4c4eaee916f5a015a74b5f45 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Tue, 26 Sep 2023 22:41:20 +0100 Subject: [PATCH] refactor: improve log directory creation messages - Changed the format of log directory creation messages to include parentheses around the directory path. - Updated the messages in `install_logs.sh` file to reflect this change. --- lgsm/modules/core_messages.sh | 4 ++-- lgsm/modules/install_logs.sh | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lgsm/modules/core_messages.sh b/lgsm/modules/core_messages.sh index 226860327..4fcad3483 100644 --- a/lgsm/modules/core_messages.sh +++ b/lgsm/modules/core_messages.sh @@ -540,12 +540,12 @@ fn_print_update_eol_nl() { # SKIP fn_print_skip_eol() { - echo -en "${cyan}[ SKIP ]${default}" + echo -en " ${cyan}[ SKIP ]${default}" fn_sleep_time } fn_print_skip_eol_nl() { - echo -e "${cyan}[ SKIP ]${default}" + echo -e " ${cyan}[ SKIP ]${default}" fn_sleep_time } diff --git a/lgsm/modules/install_logs.sh b/lgsm/modules/install_logs.sh index 45d3cfaa8..b50621abb 100644 --- a/lgsm/modules/install_logs.sh +++ b/lgsm/modules/install_logs.sh @@ -14,7 +14,7 @@ if [ -z "${checklogs}" ]; then fn_sleep_time fi -echo -en "creating log directory [ ${logdir} ]..." +echo -en "creating log directory ([${logdir} )" if [ ! -d "${logdir}" ]; then if ! mkdir -p "${logdir}"; then fn_print_fail_eol_nl @@ -26,7 +26,7 @@ else fn_print_skip_eol_nl fi -echo -en "creating script log directory [ ${lgsmlogdir} ]..." +echo -en "creating script log directory ( ${lgsmlogdir} )" if [ ! -d "${lgsmlogdir}" ]; then if ! mkdir -p "${lgsmlogdir}"; then fn_print_fail_eol_nl @@ -38,7 +38,7 @@ else fn_print_skip_eol_nl fi -echo -en "creating script log [ ${lgsmlog} ]..." +echo -en "creating script log ( ${lgsmlog} )" if [ ! -f "${lgsmlog}" ]; then if ! touch "${lgsmlog}"; then fn_print_fail_eol_nl @@ -50,7 +50,7 @@ else fn_print_skip_eol_nl fi -echo -en "creating console log directory [ ${consolelogdir} ]..." +echo -en "creating console log directory ( ${consolelogdir} )" if [ ! -d "${consolelogdir}" ]; then if ! mkdir -p "${consolelogdir}"; then fn_print_fail_eol_nl @@ -62,7 +62,7 @@ else fn_print_skip_eol_nl fi -echo -en "creating console log [ ${consolelog} ]..." +echo -en "creating console log ( ${consolelog} )" if [ ! -f "${consolelog}" ]; then if ! touch "${consolelog}"; then fn_print_fail_eol_nl @@ -75,7 +75,7 @@ else fi if [ -n "${gamelogdir}" ]; then - echo -en "creating game log directory [ ${gamelogdir} ]..." + echo -en "creating game log directory ( ${gamelogdir} )" if [ ! -d "${gamelogdir}" ]; then if ! mkdir -p "${gamelogdir}"; then fn_print_fail_eol_nl