Skip to content

Commit 7a91703

Browse files
committed
[OPENJDK-1674] use cp -p for s2i deployments
Signed-off-by: Jonathan Dowland <[email protected]>
1 parent 6751d6c commit 7a91703

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function s2i_core_copy_deployments() {
103103
local relative_source=$(realpath --relative-to "${S2I_SOURCE_DIR}" "${1}/${S2I_SOURCE_DEPLOYMENTS_DIR}")
104104
log_info "Copying deployments from $relative_source to ${S2I_TARGET_DEPLOYMENTS_DIR}..."
105105
for filter in ${S2I_SOURCE_DEPLOYMENTS_FILTER:-*}; do
106-
find "${S2I_SOURCE_DIR}/${relative_source}/" -maxdepth 1 -name "${filter}" | xargs -I '{}' -r cp -Lrv '{}' "${S2I_TARGET_DEPLOYMENTS_DIR}"
106+
find "${S2I_SOURCE_DIR}/${relative_source}/" -maxdepth 1 -name "${filter}" | xargs -I '{}' -r cp -Lrpv '{}' "${S2I_TARGET_DEPLOYMENTS_DIR}"
107107
done
108108
fi
109109
fi

0 commit comments

Comments
 (0)