don't copy into etc if it already exists

This commit is contained in:
Harald Sitter
2025-05-14 05:19:20 +02:00
parent c6d955536f
commit c2c96051fd

View File

@@ -72,6 +72,7 @@ fn run(root: &Path, usr: &Path) -> Result<(), Box<dyn Error>> {
.arg("--recursive")
.arg("--archive")
.arg("--reflink=auto")
.arg("--no-target-directory")
.arg(&lower_path)
.arg(dir)
.status()
@@ -87,6 +88,7 @@ fn run(root: &Path, usr: &Path) -> Result<(), Box<dyn Error>> {
.arg("--recursive")
.arg("--archive")
.arg("--reflink=auto")
.arg("--no-target-directory")
.arg(&dir_path)
.arg(dir)
.status().expect("Failed to copy upper dir");