Browse Source

messages

pull/2959/head
Daniel Gibbs 5 years ago
parent
commit
f85e42f9ba
  1. 6
      lgsm/functions/command_validate.sh
  2. 8
      lgsm/functions/core_messages.sh

6
lgsm/functions/command_validate.sh

@ -12,18 +12,18 @@ fn_commandname(){
fn_commandname fn_commandname
fn_validate(){ fn_validate(){
fn_print_warn "${commandaction} server: Validate might overwrite some customised files" fn_print_warn "Validate might overwrite some customised files"
fn_script_log_warn "${commandaction} server: Validate might overwrite some customised files" fn_script_log_warn "${commandaction} server: Validate might overwrite some customised files"
totalseconds=3 totalseconds=3
for seconds in {3..1}; do for seconds in {3..1}; do
fn_print_warn "${commandaction} server: Validate might overwrite some customised files: ${totalseconds}" fn_print_warn "Validate might overwrite some customised files: ${totalseconds}"
totalseconds=$((totalseconds - 1)) totalseconds=$((totalseconds - 1))
sleep 1 sleep 1
if [ "${seconds}" == "0" ]; then if [ "${seconds}" == "0" ]; then
break break
fi fi
done done
fn_print_warn_nl "${commandaction} server: Validate might overwrite some customised files" fn_print_warn_nl "Validate might overwrite some customised files"
fn_dl_steamcmd fn_dl_steamcmd
} }

8
lgsm/functions/core_messages.sh

@ -531,16 +531,16 @@ fn_print_ascii_logo(){
} }
fn_print_stop_warning(){ fn_print_stop_warning(){
fn_print_warn "${commandaction} server: ${selfname} will be stopped" fn_print_warn "${selfname} will be stopped"
fn_script_log_warn "${commandaction} server: ${selfname} will be stopped" fn_script_log_warn "${selfname} will be stopped"
totalseconds=3 totalseconds=3
for seconds in {3..1}; do for seconds in {3..1}; do
fn_print_warn "${commandaction} server: ${selfname} will be stopped: ${totalseconds}" fn_print_warn "${selfname} will be stopped: ${totalseconds}"
totalseconds=$((totalseconds - 1)) totalseconds=$((totalseconds - 1))
sleep 1 sleep 1
if [ "${seconds}" == "0" ]; then if [ "${seconds}" == "0" ]; then
break break
fi fi
done done
fn_print_warn_nl "${commandaction} server: ${selfname} will be stopped" fn_print_warn_nl "${selfname} will be stopped"
} }

Loading…
Cancel
Save