From 7fc05f8863f1ac56f348ef111dba64e7da09783c Mon Sep 17 00:00:00 2001 From: Eric Anderson Date: Mon, 22 Jun 2026 07:48:10 -0700 Subject: [PATCH] kokoro: Remove extra / in architecture replacement The trailing slash was accidentally introduced in 10d901d64 when reversing the replacement order. The slash causes the new file name to have an extra directory in it, which doesn't exist, so the copy command then fails. Fixes #12862 --- buildscripts/kokoro/upload_artifacts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildscripts/kokoro/upload_artifacts.sh b/buildscripts/kokoro/upload_artifacts.sh index b4b26b0d567..85b267e2329 100644 --- a/buildscripts/kokoro/upload_artifacts.sh +++ b/buildscripts/kokoro/upload_artifacts.sh @@ -43,7 +43,7 @@ LOCAL_OTHER_ARTIFACTS="$KOKORO_GFILE_DIR"/github/grpc-java/artifacts/ # from macos job: [[ "$(find "$LOCAL_MVN_ARTIFACTS" -type f -iname 'protoc-gen-grpc-java-*-osx-aarch_64.exe' | wc -l)" != '0' ]] # copy the universal binaries to x86, as they work on both architectures -find "$LOCAL_MVN_ARTIFACTS" -type f -iname 'protoc-gen-grpc-java-*-osx-aarch_64.exe*' -exec bash -c 'cp "${0}" "${0/aarch/x86/}"' {} \; +find "$LOCAL_MVN_ARTIFACTS" -type f -iname 'protoc-gen-grpc-java-*-osx-aarch_64.exe*' -exec bash -c 'cp "${0}" "${0/aarch/x86}"' {} \; # from windows job: [[ "$(find "$LOCAL_MVN_ARTIFACTS" -type f -iname 'protoc-gen-grpc-java-*-windows-x86_64.exe' | wc -l)" != '0' ]]