Browse Source

add fn_print and fn_print_nl

Daniel Gibbs 1 year ago
parent
commit
deb84d7e0e
2 changed files with 11 additions and 1 deletions
  1. 1 1
      lgsm/modules/core_dl.sh
  2. 10 0
      lgsm/modules/core_messages.sh

+ 1 - 1
lgsm/modules/core_dl.sh

@@ -129,7 +129,7 @@ fn_dl_steamcmd() {
 				fn_script_log_error "${commandaction} ${selfname}: ${remotelocation}: Missing update files"
 			else
 				fn_print_error2_nl "${commandaction} ${selfname}: ${remotelocation}: Unknown error occured"
-				echo -en "Please provide content log to LinuxGSM developers https://linuxgsm.com/steamcmd-error"
+				fn_print_nl "Please provide content log to LinuxGSM developers https://linuxgsm.com/steamcmd-error"
 				fn_script_log_error "${commandaction} ${selfname}: ${remotelocation}: Unknown error occured"
 			fi
 		elif [ "${exitcode}" != 0 ]; then

+ 10 - 0
lgsm/modules/core_messages.sh

@@ -140,6 +140,16 @@ fn_script_log_info() {
 # On-Screen - Automated functions
 ##################################
 
+fn_print() {
+	echo -en "$*"
+	fn_sleep_time
+}
+
+fn_print_nl() {
+	echo -e "$*"
+	fn_sleep_time
+}
+
 # [ .... ]
 fn_print_dots() {
 	if [ "${commandaction}" ]; then