Commit d1354c83 authored by Manuel Moos's avatar Manuel Moos
Browse files

Have non-rsync based path available

On macOS, the 'cp -lrf' command fails because it can't work, then
we need to use rsync.
On Linux builds, it sometimes failes for other reasons, and then rsync
may not be available. So use 'cp -lrf' then, again.
parent 850a1ba7
Pipeline #266485681 passed with stages
in 36 minutes and 46 seconds
......@@ -25,7 +25,11 @@ if ! cp -lrf context/ $@ "${target}"/ > /dev/null 2>&1; then
if test -f "$f"; then
ln -f "$f" "${target}"/|| { rm -rf "${target}"; exit 1; }
rsync -qav --link-dest="$f" "$f" "${target}/" || { rm -rf "${target}"; exit 1; }
if which rsync > /dev/null 2>&1; then
rsync -qav --link-dest="$f" "$f" "${target}/" || { rm -rf "${target}"; exit 1; }
cp -lrf "$f" "${target}/" || { rm -rf "${target}"; exit 1; }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment