Skip to content

Commit

Permalink
core: avoid creare recursive dir
Browse files Browse the repository at this point in the history
This is reverting a previous commit
70de208
that it is not supported on OSX

Signed-off-by: Vincenzo Palazzo <[email protected]>
  • Loading branch information
vincenzopalazzo committed Feb 26, 2024
1 parent 99a073a commit 6255f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coffee_core/src/coffee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ impl PluginManager for CoffeeManager {
old_root_path,
new_root_path
);
let script = format!("cp -r {old_root_path} {new_root_path}");
let script = format!("mkdir -p {new_root_path} || echo '{new_root_path} already exist' && cp -r {old_root_path}/ {new_root_path}");
sh!(self.config.root_path.clone(), script, verbose);
log::debug!(
"Done! copying directory from {} inside the new one {}",
Expand Down

0 comments on commit 6255f6e

Please sign in to comment.