Skip to content

Commit e8b5125

Browse files
committed
Force osname check to always be in lower-case. See #1077
PiperOrigin-RevId: 513382587
1 parent b262759 commit e8b5125

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

oss_scripts/run_build.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
set -e # fail and exit on any command erroring
33
set -x # print evaluated commands
44

5-
osname="$(uname -s)"
6-
if [[ $osname == "Darwin" ]]; then
5+
osname="$(uname -s | tr 'A-Z' 'a-z')"
6+
7+
if [[ $osname == "darwin" ]]; then
78
# Update to macos extensions
89
sed -i '' 's/".so"/".dylib"/' tensorflow_text/tftext.bzl
910
perl -pi -e "s/(load_library.load_op_library.*)\\.so'/\$1.dylib'/" $(find tensorflow_text/python -type f)

0 commit comments

Comments
 (0)