From 1a2a793d054bb0a215735d79874f9694ec79ac46 Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch> Date: Thu, 24 Mar 2022 11:40:36 +0100 Subject: [PATCH] mysql update message text on empty db --- plugins/localdump/mysql.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/localdump/mysql.sh b/plugins/localdump/mysql.sh index 1e0333c..072fd11 100755 --- a/plugins/localdump/mysql.sh +++ b/plugins/localdump/mysql.sh @@ -101,7 +101,7 @@ function mysql.db.dump(){ _iTables=$( mysql --skip-column-names --batch -e "use $_dbname; show tables ;" | wc -l ) if [ $_iTables -eq 0 ]; then - echo -n "NO DATA in database" + echo -n "EMPTY DATABASE ... " else echo "ERROR: no data - the dump doesn't contain any CREATE or INSERT statement." # force an error -- GitLab