mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-24 23:15:24 +03:00
Enforce that the updater is run from the root dir; it assumes data/ exists.
This commit is contained in:
parent
913f7b770f
commit
56b16f8dae
@ -13,6 +13,10 @@ const MD5_BUF_READ_SIZE: usize = 4096;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
if !std::path::Path::new("data").exists() {
|
||||
panic!("Your current directory doesn't have the data/ directory. Run from the git root: cd ../; cargo run --bin updater -- args");
|
||||
}
|
||||
|
||||
let mut args = CmdArgs::new();
|
||||
let version = args
|
||||
.optional("--version")
|
||||
|
Loading…
Reference in New Issue
Block a user