Don`t delete source file
This commit is contained in:
parent
d42db146f8
commit
024da4cc60
|
@ -109,7 +109,7 @@ restore()
|
||||||
if [ -f "$DIR/$BDD/$TABLE.txt" ]; then
|
if [ -f "$DIR/$BDD/$TABLE.txt" ]; then
|
||||||
rm $DIR/$BDD/$TABLE.txt
|
rm $DIR/$BDD/$TABLE.txt
|
||||||
fi
|
fi
|
||||||
bunzip2 $DIR/$BDD/$TABLE.txt.bz2
|
bunzip2 -k $DIR/$BDD/$TABLE.txt.bz2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f "$DIR/$BDD/$TABLE.txt" ]; then
|
if [ -f "$DIR/$BDD/$TABLE.txt" ]; then
|
||||||
|
@ -130,9 +130,9 @@ restore()
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ ! -f "$DIR/$BDD/$TABLE.txt.bz2" ]; then
|
if [ -f "$DIR/$BDD/$TABLE.txt.bz2" ]; then
|
||||||
f_log "> $TABLE"
|
f_log "Delete source: $TABLE.txt"
|
||||||
bzip2 $DIR/$BDD/$TABLE.txt
|
rm $DIR/$BDD/$TABLE.txt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue