From 3016fb6f27aa846508e7b0ae1840013ec76e26c5 Mon Sep 17 00:00:00 2001 From: Christoph Date: Mon, 5 Mar 2018 01:33:43 +0100 Subject: [PATCH] In case of not running in a terminal: do not print warning if no configuration file was found. --- optimize_mysql_tables.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/optimize_mysql_tables.sh b/optimize_mysql_tables.sh index 2ca4b03..b68c4f0 100755 --- a/optimize_mysql_tables.sh +++ b/optimize_mysql_tables.sh @@ -151,7 +151,9 @@ if [[ -f "$conf_file" ]]; then fi else echo_skipped - warn "No Configuration File found. Loading defaults.." + if $terminal ;then + warn "No Configuration File found. Loading defaults.." + fi fi