Use POSIX -R instead of -r in copy for better portability

In MacOS, -r will exit with 1 if any broken symlinks are
encountered. -r is "implementation-defined" according to POSIX.
-R is well defined.
This commit is contained in:
Will Angenent 2023-04-15 08:43:53 +01:00
parent 5656bb8648
commit 4a71973e95

View File

@ -178,7 +178,7 @@ function op {
then
mkdir "${COOKBOOK_BUILD}"
else
cp -rp source "${COOKBOOK_BUILD}"
cp -Rp source "${COOKBOOK_BUILD}"
fi
for patch in *.patch