Follow symlinks when copying files

This commit is contained in:
selfhoster selfhoster 2023-06-06 11:55:31 +02:00
parent 99be1f49af
commit 52cfb26a3a

View File

@ -84,7 +84,7 @@ for fileIndex in ${!COPY[@]}; do
#DESTPATH="$ROOTFS""$DESTPATH"
PARENTPATHDEST="$(dirname "$PATHDEST")"
mkdir -p "$PARENTPATHDEST"
cp -r "$PATHSRC" "$PATHDEST"
cp --dereference -r "$PATHSRC" "$PATHDEST"
done
CMD="$1"