mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-24 01:15:12 +03:00
Fix a bug in the UI importer that happens the first time you run it. #523
This commit is contained in:
parent
ca70d7c617
commit
01431827dd
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user