summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2018-03-23 13:41:10 +0100
committerGitHub <noreply@github.com>2018-03-23 13:41:10 +0100
commitfd91662ed9fb9e087cc063f8f2d0ff1bd105b912 (patch)
tree68bc048db5a6a81a3cb0b8f56fe3d3f116153bf9
parente93cf199ec06b49a4172bd95cf59047f2bbbac81 (diff)
parent8f1d3c4ffb867bf99769e91adbd1eafb85dd6745 (diff)
downloadimag-fd91662ed9fb9e087cc063f8f2d0ff1bd105b912.zip
imag-fd91662ed9fb9e087cc063f8f2d0ff1bd105b912.tar.gz
Merge pull request #1363 from matthiasbeyer/imag-init/create-store-dir
Fix: Create store directory as well
-rw-r--r--bin/core/imag-init/src/main.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/core/imag-init/src/main.rs b/bin/core/imag-init/src/main.rs
index 356b3bc..2ad1572 100644
--- a/bin/core/imag-init/src/main.rs
+++ b/bin/core/imag-init/src/main.rs
@@ -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();