summaryrefslogtreecommitdiff
path: root/sdk/java_sdk_test.go
diff options
context:
space:
mode:
author Jerome Gaillard <jgaillard@google.com> 2021-10-04 15:28:07 +0000
committer Paul Duffin <paulduffin@google.com> 2021-10-05 10:01:08 +0100
commit0fa984e5d6044b16124671d863404dca8d9626d0 (patch)
treecdcbc8829618206684e597ba4f095bc10bb41846 /sdk/java_sdk_test.go
parentb727c1e0ba9dfc7e2784d942b9a1ad07e0ee3208 (diff)
Fix script for package check to work on macOS
The behaviour of shell parameter expansion on linux and macOS is different: - on linux "\/" in the replaced string is interpreted as simply "/" - on macOS it is interpreted as the full string "\/" For example, "android.package.example" would be changed to: - "android/package/example" on linux - "android\/package\/example" on macOS The character / is not a special character for pattern matching in bash, so it doesn't need to be escaped. Hence using / instead of \/ in the replaced string works on both linux and macOS. Test: in sdk_mac continuous build. Merged-In: Id6a5cf32afc53d5ffd989c0ac8aa0b9e0fcbaf82 Change-Id: Id6a5cf32afc53d5ffd989c0ac8aa0b9e0fcbaf82 Fixes: 201947033 (cherry picked from commit 03c64c87a41ccc28721683cbac51fdbc1519ff02)
Diffstat (limited to 'sdk/java_sdk_test.go')
0 files changed, 0 insertions, 0 deletions