Skip to content

Commit 50b4df4

Browse files
committed
In the build pip package script, the alias for readlink was not being used. This should force it.
PiperOrigin-RevId: 275549759
1 parent a4e4d31 commit 50b4df4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

oss_scripts/pip_package/build_pip_package.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ die() {
1616
}
1717

1818
osname="$(uname -s)"
19+
echo $osname
20+
readlinkcmd=readlink
1921
if [[ $osname == "Darwin" ]]; then
20-
alias readlink=greadlink
22+
readlinkcmd=greadlink
2123
fi
2224

2325
main() {
@@ -27,7 +29,7 @@ main() {
2729
output_dir="/tmp/tensorflow_text_pkg"
2830
fi
2931
mkdir -p ${output_dir}
30-
output_dir=$(readlink -f "${output_dir}")
32+
output_dir=$($readlinkcmd -f "${output_dir}")
3133
echo "=== Destination directory: ${output_dir}"
3234

3335
if [[ ! -d "bazel-bin/tensorflow_text" ]]; then

0 commit comments

Comments
 (0)