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_"