瀏覽代碼

fixed broken file copy for files in multi level directories

Thanks to @marmarek for the report and help fixing!
Patrick Schleizer 8 年之前
父節點
當前提交
e9fca8fb9f
共有 1 個文件被更改,包括 1 次插入1 次删除
  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."