Skip to content

Commit

Permalink
In the build pip package script, the alias for readlink was not being…
Browse files Browse the repository at this point in the history
… used. This should force it.

PiperOrigin-RevId: 275549759
  • Loading branch information
broken committed Oct 18, 2019
1 parent a4e4d31 commit 50b4df4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions oss_scripts/pip_package/build_pip_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ die() {
}

osname="$(uname -s)"
echo $osname
readlinkcmd=readlink
if [[ $osname == "Darwin" ]]; then
alias readlink=greadlink
readlinkcmd=greadlink
fi

main() {
Expand All @@ -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
Expand Down

0 comments on commit 50b4df4

Please sign in to comment.