@@ -36,9 +36,9 @@ fn_install_mono_repo(){
3636 eval ${cmd}
3737 else
3838 fn_print_warn_nl " Installing Mono repository"
39- echo " Mono auto install not available for ${distroname} "
40- echo " Follow instructions on mono site to install the latest version of Mono."
41- echo " https://www.mono-project.com/download/stable/#download-lin"
39+ echo -e " Mono auto install not available for ${distroname} "
40+ echo -e " Follow instructions on mono site to install the latest version of Mono."
41+ echo -e " https://www.mono-project.com/download/stable/#download-lin"
4242 monoautoinstall=" 1"
4343 fi
4444 elif [ " ${distroid} " == " debian" ]; then
@@ -52,9 +52,9 @@ fn_install_mono_repo(){
5252 cmd=" sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF;sudo apt install apt-transport-https;echo 'deb https://download.mono-project.com/repo/debian stable-jessie main' | sudo tee /etc/apt/sources.list.d/mono-official-stable.list;sudo apt update"
5353 eval ${cmd}
5454 else
55- echo " Mono auto install not available for ${distroname} "
56- echo " Follow instructions on mono site to install the latest version of Mono."
57- echo " https://www.mono-project.com/download/stable/#download-lin"
55+ echo -e " Mono auto install not available for ${distroname} "
56+ echo -e " Follow instructions on mono site to install the latest version of Mono."
57+ echo -e " https://www.mono-project.com/download/stable/#download-lin"
5858 monoautoinstall=" 1"
5959 fi
6060 elif [ " ${distroid} " == " centos" ]; then
@@ -68,18 +68,18 @@ fn_install_mono_repo(){
6868 cmd=" rpm --import 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF';su -c 'curl https://download.mono-project.com/repo/centos6-stable.repo | tee /etc/yum.repos.d/mono-centos6-stable.repo'"
6969 eval ${cmd}
7070 else
71- echo " Mono auto install not available for ${distroname} "
72- echo " Follow instructions on mono site to install the latest version of Mono."
73- echo " https://www.mono-project.com/download/stable/#download-lin"
71+ echo -e " Mono auto install not available for ${distroname} "
72+ echo -e " Follow instructions on mono site to install the latest version of Mono."
73+ echo -e " https://www.mono-project.com/download/stable/#download-lin"
7474 monoautoinstall=" 1"
7575 fi
7676 elif [ " ${distroid} " == " fedora" ]; then
7777 cmd=" rpm --import 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF'; su -c 'curl https://download.mono-project.com/repo/centos7-stable.repo | tee /etc/yum.repos.d/mono-centos7-stable.repo'; dnf update"
7878 eval ${cmd}
7979 else
80- echo " Mono auto install not available for ${distroname} "
81- echo " Follow instructions on mono site to install the latest version of Mono."
82- echo " https://www.mono-project.com/download/stable/#download-lin"
80+ echo -e " Mono auto install not available for ${distroname} "
81+ echo -e " Follow instructions on mono site to install the latest version of Mono."
82+ echo -e " https://www.mono-project.com/download/stable/#download-lin"
8383 monoautoinstall=" 1"
8484 fi
8585 if [ " ${monoautoinstall} " != " 1" ]; then
@@ -95,11 +95,11 @@ fn_install_mono_repo(){
9595 fi
9696 else
9797 fn_print_information_nl " Installing Mono repository"
98- echo " "
98+ echo -e " "
9999 fn_print_warning_nl " $( whoami) does not have sudo access. Manually install Mono repository."
100100 fn_script_log_warn " $( whoami) does not have sudo access. Manually install Mono repository."
101- echo " Follow instructions on mono site to install the latest version of Mono."
102- echo " https://www.mono-project.com/download/stable/#download-lin"
101+ echo -e " Follow instructions on mono site to install the latest version of Mono."
102+ echo -e " https://www.mono-project.com/download/stable/#download-lin"
103103 fi
104104 fi
105105}
@@ -134,8 +134,8 @@ fn_install_universe_repo(){
134134 else
135135 fn_print_warning_nl " $( whoami) does not have sudo access. Manually add Universe repository."
136136 fn_script_log_warn " $( whoami) does not have sudo access. Manually add Universe repository."
137- echo " Please run the following command as a user with sudo access, and re-run the installation"
138- echo " sudo apt-add-repository universe"
137+ echo -e " Please run the following command as a user with sudo access, and re-run the installation"
138+ echo -e " sudo apt-add-repository universe"
139139 fi
140140 fi
141141}
@@ -238,7 +238,7 @@ fn_found_missing_deps(){
238238 fi
239239 if [ -n " ${jqstatus} " ]; then
240240 fn_print_warning_nl " jq is not available in the ${distroname} repository"
241- echo " * https://docs.linuxgsm.com/requirements/jq"
241+ echo -e " * https://docs.linuxgsm.com/requirements/jq"
242242 fi
243243 if [ " ${autoinstall} " == " 1" ]; then
244244 sudo -n true > /dev/null 2>&1
@@ -268,18 +268,18 @@ fn_found_missing_deps(){
268268 if [ $? != 0 ]; then
269269 fn_print_failure_nl " Unable to install dependencies"
270270 fn_script_log_fatal " Unable to install dependencies"
271- echo " "
271+ echo -e " "
272272 fn_print_warning_nl " Manually install dependencies."
273273 fn_script_log_warn " Manually install dependencies."
274274 if [ -n " $( command -v dpkg-query 2> /dev/null) " ]; then
275- echo " sudo dpkg --add-architecture i386; sudo apt update; sudo apt install ${array_deps_missing[@]} "
275+ echo -e " sudo dpkg --add-architecture i386; sudo apt update; sudo apt install ${array_deps_missing[@]} "
276276 elif [ -n " $( command -v dnf 2> /dev/null) " ]; then
277- echo " sudo dnf install ${array_deps_missing[@]} "
277+ echo -e " sudo dnf install ${array_deps_missing[@]} "
278278 elif [ -n " $( command -v yum 2> /dev/null) " ]; then
279- echo " sudo yum install ${array_deps_missing[@]} "
279+ echo -e " sudo yum install ${array_deps_missing[@]} "
280280 fi
281281 if [ " ${steamcmdfail} " ]; then
282- echo " "
282+ echo -e " "
283283 fn_print_failure_nl " Missing dependencies required to run SteamCMD."
284284 fn_script_log_fatal " Missing dependencies required to run SteamCMD."
285285 core_exit.sh
@@ -289,23 +289,23 @@ fn_found_missing_deps(){
289289 fn_script_log_pass " Install dependencies completed"
290290 fi
291291 else
292- echo " "
292+ echo -e " "
293293 fn_print_warning_nl " $( whoami) does not have sudo access. Manually install dependencies."
294294 fn_script_log_warn " $( whoami) does not have sudo access. Manually install dependencies."
295295 if [ -n " $( command -v dpkg-query 2> /dev/null) " ]; then
296- echo " sudo dpkg --add-architecture i386; sudo apt update; sudo apt install ${array_deps_missing[@]} "
296+ echo -e " sudo dpkg --add-architecture i386; sudo apt update; sudo apt install ${array_deps_missing[@]} "
297297 elif [ -n " $( command -v dnf 2> /dev/null) " ]; then
298- echo " sudo dnf install ${array_deps_missing[@]} "
298+ echo -e " sudo dnf install ${array_deps_missing[@]} "
299299 elif [ -n " $( command -v yum 2> /dev/null) " ]; then
300- echo " sudo yum install ${array_deps_missing[@]} "
300+ echo -e " sudo yum install ${array_deps_missing[@]} "
301301 fi
302302 if [ " ${steamcmdfail} " ]; then
303- echo " "
303+ echo -e " "
304304 fn_print_failure_nl " Missing dependencies required to run SteamCMD."
305305 fn_script_log_fatal " Missing dependencies required to run SteamCMD."
306306 core_exit.sh
307307 fi
308- echo " "
308+ echo -e " "
309309 fi
310310 if [ " ${function_selfname} " == " command_install.sh" ]; then
311311 sleep 5
@@ -562,16 +562,16 @@ fn_deps_build_redhat(){
562562
563563if [ " ${function_selfname} " == " command_install.sh" ]; then
564564 if [ " $( whoami) " == " root" ]; then
565- echo " "
566- echo " Checking Dependencies as root"
567- echo " ================================="
565+ echo -e " "
566+ echo -e " ${lightyellow} Checking Dependencies as root${default} "
567+ echo -e " ================================="
568568 fn_print_information_nl " Checking any missing dependencies for ${gamename} server only."
569569 fn_print_information_nl " This will NOT install a ${gamename} server."
570570 fn_sleep_time
571571 else
572- echo " "
573- echo " Checking Dependencies"
574- echo " ================================="
572+ echo -e " "
573+ echo -e " ${lightyellow} Checking Dependencies${default} "
574+ echo -e " ================================="
575575 fi
576576fi
577577
0 commit comments