This is an automated email from the ASF dual-hosted git repository. chesnay pushed a commit to branch exp_github_actions in repository https://gitbox.apache.org/repos/asf/flink.git
commit f8501d3d2bb9680a38ab0f81605c1c1b7ca841cb Author: Chesnay Schepler <ches...@apache.org> AuthorDate: Wed Mar 30 16:42:30 2022 +0200 improve xargs --- tools/azure-pipelines/unpack_build_artifact.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/azure-pipelines/unpack_build_artifact.sh b/tools/azure-pipelines/unpack_build_artifact.sh index ab012170b23..da8a715b153 100755 --- a/tools/azure-pipelines/unpack_build_artifact.sh +++ b/tools/azure-pipelines/unpack_build_artifact.sh @@ -40,15 +40,15 @@ tar -xzf ${FLINK_ARTIFACT_DIR} ${TARGET_FOLDER_PARAMETER} echo "Adjusting timestamps" # adjust timestamps of proto file to avoid re-generation -find . -type f -name '*.proto' | xargs touch +find . -type f -name '*.proto' | xargs --no-run-if-empty touch # wait a bit for better odds of different timestamps sleep 5 # adjust timestamps to prevent recompilation -find . -type f -name '*.java' | xargs touch -find . -type f -name '*.scala' | xargs touch +find . -type f -name '*.java' | xargs --no-run-if-empty touch +find . -type f -name '*.scala' | xargs --no-run-if-empty touch # wait a bit for better odds of different timestamps sleep 5 -find . -type f -name '*.class' | xargs touch -find . -type f -name '*.timestamp' | xargs touch +find . -type f -name '*.class' | xargs --no-run-if-empty touch +find . -type f -name '*.timestamp' | xargs --no-run-if-empty touch