Explorar o código

fixed broken file copy for files in multi level directories

Thanks to @marmarek for the report and help fixing!
Patrick Schleizer %!s(int64=8) %!d(string=hai) anos
pai
achega
e9fca8fb9f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      vm-systemd/bind-dirs.sh

+ 1 - 1
vm-systemd/bind-dirs.sh

@@ -100,7 +100,7 @@ bind_dirs() {
          fi
       elif [ -f "$fso_ro" ]; then
          if [ ! -f "$fso_rw" ]; then
-            cp --archive --recursive "$fso_ro" "$fso_rw"
+            cp --archive --recursive --parents "$fso_ro" "$rw_dest_dir"
          fi
       else
          true "$fso_ro is neither a directory nor a file or does not exist, skipping."