#!/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" '{}' '+'