Skip to content

Commit

Permalink
Hotfix unbound $PY variable breaking cargo script (#11209)
Browse files Browse the repository at this point in the history
If `set -u` is configured, then it errors that `$PY` is not set.

[ci skip-rust]
[ci skip-build-wheels]
  • Loading branch information
Eric-Arellano authored Nov 19, 2020
1 parent 0066bdc commit 9b3b481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-support/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function git_merge_base() {
}

function determine_python() {
if [[ -n "${PY}" ]]; then
if [[ -n "${PY:-}" ]]; then
echo "${PY}"
return 0
fi
Expand Down

0 comments on commit 9b3b481

Please sign in to comment.