From 8f544530491d4a072882022607604d79e7b7c5ed Mon Sep 17 00:00:00 2001 From: mirocow Date: Thu, 17 Mar 2016 20:37:38 +0400 Subject: [PATCH] fix if table is empty --- restore_db.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restore_db.sh b/restore_db.sh index 55de737..da76233 100755 --- a/restore_db.sh +++ b/restore_db.sh @@ -68,7 +68,7 @@ restore() bunzip2 -k $DIR/$TABLE.txt.bz2 fi - if [ -f "$DIR/$TABLE.txt" ]; then + if [ -s "$DIR/$TABLE.txt" ]; then f_log "+ $TABLE" split -l $CONFIG_CHUNK "$DIR/$TABLE.txt" "$DIR/${TABLE}_part_"