Skip to content

Commit 6d16bda

Browse files
committed
[OPENJDK-1673] use cp -p for s2i deployments
Signed-off-by: Jonathan Dowland <[email protected]>
1 parent eaf7373 commit 6d16bda

File tree

1 file changed

+1
-1
lines changed
  • modules/s2i/core/artifacts/opt/jboss/container/s2i/core

1 file changed

+1
-1
lines changed

modules/s2i/core/artifacts/opt/jboss/container/s2i/core/s2i-core

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function s2i_core_copy_deployments() {
9292
local relative_source=$(realpath --relative-to "${S2I_SOURCE_DIR}" "${1}/${S2I_SOURCE_DEPLOYMENTS_DIR}")
9393
log_info "Copying deployments from $relative_source to ${S2I_TARGET_DEPLOYMENTS_DIR}..."
9494
for filter in ${S2I_SOURCE_DEPLOYMENTS_FILTER:-*}; do
95-
find "${S2I_SOURCE_DIR}/${relative_source}/" -maxdepth 1 -name "${filter}" | xargs -I '{}' -r cp -Lrv '{}' "${S2I_TARGET_DEPLOYMENTS_DIR}"
95+
find "${S2I_SOURCE_DIR}/${relative_source}/" -maxdepth 1 -name "${filter}" | xargs -I '{}' -r cp -Lrpv '{}' "${S2I_TARGET_DEPLOYMENTS_DIR}"
9696
done
9797
fi
9898
fi

0 commit comments

Comments
 (0)