Skip to content
This repository was archived by the owner on Jan 9, 2026. It is now read-only.

Commit de134d7

Browse files
committed
--safe-links
1 parent 22dbc9d commit de134d7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

scripts/runner/functions.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,6 @@ if [[ "${CONTINUE_SBUILD}" == "YES" ]]; then
382382
find "${SBUILD_OUTDIR}" -type f -exec sudo chmod +xwr "{}" \; 2>/dev/null
383383
unset ARTIFACTS_DIR ; ARTIFACTS_DIR="$(find "${SBUILD_OUTDIR}/BUILD" -name "SBUILD" -type f -exec dirname "{}" \; | xargs realpath | head -n 1 | tr -d '[:space:]')"
384384
if [ -d "${ARTIFACTS_DIR}" ] && [ $(du -s "${ARTIFACTS_DIR}" | cut -f1) -gt 10 ]; then
385-
find -L "${ARTIFACTS_DIR}" -xtype f,l -iname "*LC_MESSAGES*" -exec rm -rvf "{}" \;
386385
find -L "${ARTIFACTS_DIR}" -xtype l 2>/dev/null | awk '{
387386
link=$0;
388387
cmd="readlink \""link"\"";
@@ -400,7 +399,7 @@ if [[ "${CONTINUE_SBUILD}" == "YES" ]]; then
400399
}
401400
close(cmd);
402401
}'
403-
rsync -achL "${ARTIFACTS_DIR}/." "${SBUILD_OUTDIR}"
402+
rsync -achL --safe-links "${ARTIFACTS_DIR}/." "${SBUILD_OUTDIR}"
404403
rm -rf "${SBUILD_OUTDIR}/BUILD.log" 2>/dev/null
405404
rm -rf "${ARTIFACTS_DIR}" 2>/dev/null
406405
fi

0 commit comments

Comments
 (0)