fixed broken file copy for files in multi level directories

Thanks to @marmarek for the report and help fixing!
This commit is contained in:
Patrick Schleizer 2016-01-07 21:19:52 +00:00
parent 184f49dbbd
commit e9fca8fb9f
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -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."