From 3ea5c8d2ef91aa8e0cb636e0cd3cafae07a128b2 Mon Sep 17 00:00:00 2001 From: Christoph Date: Mon, 5 Mar 2018 11:46:47 +0100 Subject: [PATCH] Some minor changes in script output. --- optimize_mysql_tables-ND.sh | 8 ++++++-- optimize_mysql_tables.sh | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/optimize_mysql_tables-ND.sh b/optimize_mysql_tables-ND.sh index 92e4516..bf8a4ba 100755 --- a/optimize_mysql_tables-ND.sh +++ b/optimize_mysql_tables-ND.sh @@ -139,7 +139,9 @@ fi # - Load Settings from configuration file # ------------- -echo "" +if $terminal ; then + echo "" +fi echononl " Loading configuration settings from $(basename ${conf_file}).." if [[ -f "$conf_file" ]]; then source "$conf_file" > $tmp_log_file 2>&1 @@ -312,7 +314,9 @@ for _val in ${mysql_credential_args_arr[@]} ; do info "Reoptimizing table \"${table}\" of database \"$db\" was successfully." fi fi - echo "" + if $terminal ; then + echo "" + fi fi diff --git a/optimize_mysql_tables.sh b/optimize_mysql_tables.sh index 47c3b74..d19e230 100755 --- a/optimize_mysql_tables.sh +++ b/optimize_mysql_tables.sh @@ -139,7 +139,9 @@ fi # - Load Settings from configuration file # ------------- -echo "" +if $terminal ; then + echo "" +fi echononl " Loading configuration settings from $(basename ${conf_file}).." if [[ -f "$conf_file" ]]; then source "$conf_file" > $tmp_log_file 2>&1 @@ -239,7 +241,9 @@ for _val in ${mysql_credential_args_arr[@]} ; do info "Reoptimizing table \"${table}\" of database \"$db\" was successfully." fi fi - echo "" + if $terminal ;then + echo "" + fi fi