Revert existing file check: now overwriting files by default

This commit is contained in:
yvecai 2012-10-21 23:43:00 +02:00
parent 82c7569da4
commit 00213e62ce

View file

@ -39,8 +39,8 @@ outfile=$outdir$fileroot.osm
# --------------------------------------------- # ---------------------------------------------
# process # process
# --------------------------------------------- # ---------------------------------------------
if [ ! -f $outfile.bz2 ] #if [ ! -f $outfile.bz2 ]
then #then
echo "----------------------------------------------" echo "----------------------------------------------"
echo "Processing"$fileroot echo "Processing"$fileroot
echo "----------------------------------------------" echo "----------------------------------------------"
@ -56,6 +56,6 @@ then
echo "Compressing to osm.bz2 …" echo "Compressing to osm.bz2 …"
bzip2 -f $outfile bzip2 -f $outfile
if [ $? -ne 0 ]; then echo $(date)' Error compressing OSM file' & exit 6;fi if [ $? -ne 0 ]; then echo $(date)' Error compressing OSM file' & exit 6;fi
else #else
echo "Skipping, already existing file" #echo "Skipping, already existing file"
fi #fi