Prechádzať zdrojové kódy

fixed broken file copy for files in multi level directories

Thanks to @marmarek for the report and help fixing!
Patrick Schleizer 8 rokov pred
rodič
commit
e9fca8fb9f
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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."