Merge pull request #1363 from matthiasbeyer/imag-init/create-store-dir

Fix: Create store directory as well
This commit is contained in:
Matthias Beyer 2018-03-23 13:41:10 +01:00 committed by GitHub
commit fd91662ed9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,8 +94,14 @@ fn main() {
.expect("Failed to retrieve/build path for imag directory.")
});
let _ = ::std::fs::create_dir_all(path.clone())
.expect("Failed to create directory");
{
let mut store_path = path.clone();
store_path.push("store");
println!("Creating {}", store_path.display());
let _ = ::std::fs::create_dir_all(store_path)
.expect("Failed to create directory");
}
let config_path = {
let mut config_path = path.clone();