From 50b4df4d28fb5d2e1a2c2188d8ba1dcb6debc76e Mon Sep 17 00:00:00 2001 From: Robert Neale Date: Fri, 18 Oct 2019 14:44:49 -0700 Subject: [PATCH] In the build pip package script, the alias for readlink was not being used. This should force it. PiperOrigin-RevId: 275549759 --- oss_scripts/pip_package/build_pip_package.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/oss_scripts/pip_package/build_pip_package.sh b/oss_scripts/pip_package/build_pip_package.sh index ebaf04c88..09e432a8c 100755 --- a/oss_scripts/pip_package/build_pip_package.sh +++ b/oss_scripts/pip_package/build_pip_package.sh @@ -16,8 +16,10 @@ die() { } osname="$(uname -s)" +echo $osname +readlinkcmd=readlink if [[ $osname == "Darwin" ]]; then - alias readlink=greadlink + readlinkcmd=greadlink fi main() { @@ -27,7 +29,7 @@ main() { output_dir="/tmp/tensorflow_text_pkg" fi mkdir -p ${output_dir} - output_dir=$(readlink -f "${output_dir}") + output_dir=$($readlinkcmd -f "${output_dir}") echo "=== Destination directory: ${output_dir}" if [[ ! -d "bazel-bin/tensorflow_text" ]]; then