Преглед на файлове

add fn_print and fn_print_nl

Daniel Gibbs преди 1 година
родител
ревизия
deb84d7e0e
променени са 2 файла, в които са добавени 11 реда и са изтрити 1 реда
  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