Skip to content

Commit 5ab5eba

Browse files
committed
kokoro: Remove extra / in architecture replacement
The trailing slash was accidentally introduced in 10d901d 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
1 parent 6726caf commit 5ab5eba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

buildscripts/kokoro/upload_artifacts.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ LOCAL_OTHER_ARTIFACTS="$KOKORO_GFILE_DIR"/github/grpc-java/artifacts/
4343
# from macos job:
4444
[[ "$(find "$LOCAL_MVN_ARTIFACTS" -type f -iname 'protoc-gen-grpc-java-*-osx-aarch_64.exe' | wc -l)" != '0' ]]
4545
# copy the universal binaries to x86, as they work on both architectures
46-
find "$LOCAL_MVN_ARTIFACTS" -type f -iname 'protoc-gen-grpc-java-*-osx-aarch_64.exe*' -exec bash -c 'cp "${0}" "${0/aarch/x86/}"' {} \;
46+
find "$LOCAL_MVN_ARTIFACTS" -type f -iname 'protoc-gen-grpc-java-*-osx-aarch_64.exe*' -exec bash -c 'cp "${0}" "${0/aarch/x86}"' {} \;
4747

4848
# from windows job:
4949
[[ "$(find "$LOCAL_MVN_ARTIFACTS" -type f -iname 'protoc-gen-grpc-java-*-windows-x86_64.exe' | wc -l)" != '0' ]]

0 commit comments

Comments
 (0)