Skip to content

Commit

Permalink
feat: add new line before Y/N prompt
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dgibbs64 committed Sep 27, 2023
1 parent 46d004c commit cd707f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions lgsm/modules/core_messages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ fn_print_information_nl() {

# Y/N Prompt
fn_prompt_yn() {
echo -e ""
local prompt="$1"
local initial="$2"

Expand Down
6 changes: 3 additions & 3 deletions lgsm/modules/install_server_files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit cd707f5

Please sign in to comment.