Browse Source

refactor: improve header and server directory installation messages

- Updated ASCII logo formatting for better visibility.
- Added emphasis to the LinuxGSM name in the header message.
- Changed the contributor and sponsor links to be more descriptive.
- Modified the server directory installation message to indicate if a game server already exists at the specified location.
feature/dst-changes
Daniel Gibbs 2 years ago
parent
commit
9dee51ebb6
No known key found for this signature in database GPG Key ID: 2076B128385E8C55
  1. 8
      lgsm/modules/install_header.sh
  2. 4
      lgsm/modules/install_server_dir.sh

8
lgsm/modules/install_header.sh

@ -10,13 +10,13 @@ moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
clear clear
fn_print_ascii_logo fn_print_ascii_logo
fn_sleep_time fn_sleep_time
echo -e "=================================" echo -e "${bold}=================================${default}"
echo -e "${lightyellow}Linux${default}GSM_" echo -e "${bold}${lightyellow}Linux${default}${bold}GSM_${default}"
echo -e "by Daniel Gibbs" echo -e "${italic}by Daniel Gibbs${default}"
echo -e "${lightblue}Version:${default} ${version}" echo -e "${lightblue}Version:${default} ${version}"
echo -e "${lightblue}Game:${default} ${gamename}" echo -e "${lightblue}Game:${default} ${gamename}"
echo -e "${lightblue}Website:${default} https://linuxgsm.com" echo -e "${lightblue}Website:${default} https://linuxgsm.com"
echo -e "${lightblue}Contributors:${default} https://linuxgsm.com/contrib" echo -e "${lightblue}Contributors:${default} https://linuxgsm.com/contrib"
echo -e "${lightblue}Sponsor:${default} https://linuxgsm.com/sponsor" echo -e "${lightblue}Sponsor:${default} https://linuxgsm.com/sponsor"
echo -e "=================================" echo -e "${bold}=================================${default}"
fn_sleep_time fn_sleep_time

4
lgsm/modules/install_server_dir.sh

@ -9,13 +9,13 @@ moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
echo -e "" echo -e ""
echo -e "${lightyellow}Server Directory${default}" echo -e "${lightyellow}Server Directory${default}"
echo -e "=================================" echo -e "${bold}=================================${default}"
fn_sleep_time fn_sleep_time
echo -en "creating ( ${serverfiles} )" echo -en "creating ( ${serverfiles} )"
if [ -d "${serverfiles}" ]; then if [ -d "${serverfiles}" ]; then
fn_print_skip_eol_nl fn_print_skip_eol_nl
echo -e "\n* A game server is already exists at this location." echo -e "${italic}A game server is already exists at this location.${default}"
else else
fn_print_ok_eol_nl fn_print_ok_eol_nl
fi fi

Loading…
Cancel
Save