浏览代码

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.
Daniel Gibbs 2 年之前
父节点
当前提交
cd707f5325
共有 2 个文件被更改,包括 4 次插入3 次删除
  1. 1 0
      lgsm/modules/core_messages.sh
  2. 3 3
      lgsm/modules/install_server_files.sh

+ 1 - 0
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"
 

+ 3 - 3
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