wiktorn / Overpass-API

Overpass API docker image
MIT License
134 stars 48 forks source link

Ignore corruption in changes.osm #55

Closed CJxD closed 3 years ago

CJxD commented 3 years ago

If changes.osm is corrupt, osmium fileinfo will return exit code 1 and the script will terminate, but the diff file will still exist. As a result, the changes will never be applied. This small change simply returns "" if the timestamp can't be read, and the file will be skipped.