fix if table is empty
This commit is contained in:
parent
719abd0f15
commit
8f54453049
|
@ -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_"
|
||||||
|
|
Loading…
Reference in a new issue