diff --git a/importer/src/bin/one_step_import.rs b/importer/src/bin/one_step_import.rs index 3bb3533d7b..e32db0a7e0 100644 --- a/importer/src/bin/one_step_import.rs +++ b/importer/src/bin/one_step_import.rs @@ -49,7 +49,9 @@ async fn main() -> Result<()> { .arg("boundary0.poly") .output()?; assert!(out.status.success()); - String::from_utf8(out.stdout)? + // pick_geofabrik might output extra lines while downloading the index. Grab the last line. + let output = String::from_utf8(out.stdout)?; + output.trim().split("\n").last().unwrap().trim().to_string() }; // Name the temporary map based on the Geofabrik region.