fix if table is empty

This commit is contained in:
mirocow 2016-03-17 20:37:38 +04:00
parent 719abd0f15
commit 8f54453049
1 changed files with 1 additions and 1 deletions

View File

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