
The script publish-export-dir.sh follows symlinks when copying files. This doesn't work correctly if some of the symlinks are broken. It's also not clear why it was done this way in the first place. This patch disables this bihaviour. Signed-off-by: Davlet Panech <davlet.panech@windriver.com> Change-Id: Ib3513039371b4eafa5aa5e871a506c33b2dfeb81
25 lines
456 B
Bash
Executable File
25 lines
456 B
Bash
Executable File
#!/bin/bash
|
|
|
|
#
|
|
# Copyright (c) 2022 Wind River Systems, Inc.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
set -e
|
|
source $(dirname "$0")/lib/job_utils.sh
|
|
|
|
load_build_env
|
|
|
|
$DRY_RUN && bail "DRY_RUN not supported, bailing out" || :
|
|
|
|
src_dir="$WORKSPACE_ROOT/export"
|
|
dst_dir="$PUBLISH_DIR"
|
|
|
|
! dir_is_empty "$src_dir" || exit 0
|
|
|
|
notice "copying export dir $dst_dir"
|
|
mkdir -p "$dst_dir"
|
|
find "$src_dir" -mindepth 1 -maxdepth 1 -exec cp -vr -t "$dst_dir" '{}' '+'
|
|
|