Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions flake-ctl/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,11 @@ pub fn init(app: Option<&String>) -> bool {
already exists.
!*/
let mut status = true;
if app.is_some() && Path::new(&app.unwrap()).exists() {
error!("App path {} already exists", app.unwrap());
return false;
if let Some(path) = app {
if Path::new(&app.unwrap()).exists() {
error!("App path {} already exists", path);
return false;
}
}
let mut flake_dir = String::new();
match fs::read_link(get_flakes_dir()) {
Expand Down
1 change: 1 addition & 0 deletions podman-pilot/src/podman.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ pub fn create(

let mut app = user.run("podman");
app.arg("create")
.arg("--pull=newer")
.arg("--cidfile").arg(&container_cid_file);

// Make sure CID dir exists
Expand Down