Skip to content

Commit

Permalink
Force osname check to always be in lower-case. See #1077
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 513382587
  • Loading branch information
broken committed Mar 2, 2023
1 parent b262759 commit e8b5125
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions oss_scripts/run_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
set -e # fail and exit on any command erroring
set -x # print evaluated commands

osname="$(uname -s)"
if [[ $osname == "Darwin" ]]; then
osname="$(uname -s | tr 'A-Z' 'a-z')"

if [[ $osname == "darwin" ]]; then
# Update to macos extensions
sed -i '' 's/".so"/".dylib"/' tensorflow_text/tftext.bzl
perl -pi -e "s/(load_library.load_op_library.*)\\.so'/\$1.dylib'/" $(find tensorflow_text/python -type f)
Expand Down

0 comments on commit e8b5125

Please sign in to comment.