From 9ec10eaedcd814ecca49de8da0190198e6dc2a1f Mon Sep 17 00:00:00 2001 From: daywalker90 Date: Sun, 25 Feb 2024 14:15:11 +0100 Subject: [PATCH] install command: add -T option to cp to not create nested folders on duplicate calls --- coffee_core/src/coffee.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coffee_core/src/coffee.rs b/coffee_core/src/coffee.rs index b79c4b2..1bf247e 100644 --- a/coffee_core/src/coffee.rs +++ b/coffee_core/src/coffee.rs @@ -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!("cp -r -T {old_root_path} {new_root_path}"); sh!(self.config.root_path.clone(), script, verbose); log::debug!( "Done! copying directory from {} inside the new one {}",