From cd707f53252f99bbc0a1ecd3b066df0d3f867721 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Wed, 27 Sep 2023 11:55:46 +0100 Subject: [PATCH] feat: add new line before Y/N prompt The commit adds a new line before the Y/N prompt in the `fn_prompt_yn` function. This improves readability and user experience. refactor: improve formatting in install_server_files.sh The commit improves the formatting in the `install_server_files.sh` file by adding bold styling to the installation header. It also adds bold styling to the separator line for better visual separation. These changes enhance the overall appearance of the installation process. fix: correct formatting issue in install_server_files.sh The commit fixes a formatting issue in the `install_server_files.sh` file where an extra separator line was not properly formatted with bold styling. The fix ensures consistent and correct formatting throughout the script. chore: update prompt message in install_server_files.sh The commit updates a prompt message in the `install_server_files.sh` file to make it more informative and user-friendly. The updated message asks if the installation was successful, providing clearer instructions for users. refactor: remove redundant separator line in install_server_files.sh The commit removes a redundant separator line from the `install_server_files.sh` file that was causing unnecessary visual clutter. This improves code readability and simplifies the installation process. --- lgsm/modules/core_messages.sh | 1 + lgsm/modules/install_server_files.sh | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lgsm/modules/core_messages.sh b/lgsm/modules/core_messages.sh index 410abd2111..d73366627b 100644 --- a/lgsm/modules/core_messages.sh +++ b/lgsm/modules/core_messages.sh @@ -333,6 +333,7 @@ fn_print_information_nl() { # Y/N Prompt fn_prompt_yn() { + echo -e "" local prompt="$1" local initial="$2" diff --git a/lgsm/modules/install_server_files.sh b/lgsm/modules/install_server_files.sh index b7af5c8ed7..42069a556e 100644 --- a/lgsm/modules/install_server_files.sh +++ b/lgsm/modules/install_server_files.sh @@ -210,8 +210,8 @@ if [ "${shortname}" == "mc" ] || [ "${shortname}" == "pmc" ] || [ "${shortname}" fi echo -e "" -echo -e "${lightyellow}Installing ${gamename} Server${default}" -echo -e "=================================" +echo -e "${bold}${lightyellow}Installing ${gamename} Server${default}" +echo -e "${bold}=================================${default}" fn_sleep_time if [ "${appid}" ]; then @@ -249,7 +249,7 @@ fi if [ -z "${autoinstall}" ]; then echo -e "" - echo -e "=================================" + echo -e "${bold}=================================${default}" if ! fn_prompt_yn "Was the install successful?" Y; then install_retry.sh fi