fix if table is empty

This commit is contained in:
mirocow 2016-03-17 20:37:38 +04:00
parent 719abd0f15
commit 8f54453049

View file

@ -68,7 +68,7 @@ restore()
bunzip2 -k $DIR/$TABLE.txt.bz2 bunzip2 -k $DIR/$TABLE.txt.bz2
fi fi
if [ -f "$DIR/$TABLE.txt" ]; then if [ -s "$DIR/$TABLE.txt" ]; then
f_log "+ $TABLE" f_log "+ $TABLE"
split -l $CONFIG_CHUNK "$DIR/$TABLE.txt" "$DIR/${TABLE}_part_" split -l $CONFIG_CHUNK "$DIR/$TABLE.txt" "$DIR/${TABLE}_part_"