From e2efabe8e429c6bb392f8422076e452105c5516b Mon Sep 17 00:00:00 2001 From: mirocow Date: Thu, 17 Mar 2016 20:38:13 +0400 Subject: [PATCH] fix if table is empty --- restore.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restore.sh b/restore.sh index 862b73d..ea4ef70 100755 --- a/restore.sh +++ b/restore.sh @@ -112,7 +112,7 @@ restore() bunzip2 -k $DIR/$BDD/$TABLE.txt.bz2 fi - if [ -f "$DIR/$BDD/$TABLE.txt" ]; then + if [ -s "$DIR/$BDD/$TABLE.txt" ]; then f_log "+ $TABLE"