Skip to content

Commit 633b824

Browse files
committed
go away unboundlocal
1 parent e7277f3 commit 633b824

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/lib.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ query-apple-m1() {
4848
}
4949

5050
get-pyenv-version() {
51-
if [[ -n "$SENTRY_PYTHON_VERSION" ]]; then
51+
if [[ -n "${SENTRY_PYTHON_VERSION:-}" ]]; then
5252
echo "${SENTRY_PYTHON_VERSION}"
5353
return 0
5454
fi
@@ -62,7 +62,7 @@ get-pyenv-version() {
6262
}
6363

6464
query-valid-python-version() {
65-
if [[ -n "$SENTRY_PYTHON_VERSION" ]]; then
65+
if [[ -n "${SENTRY_PYTHON_VERSION:-}" ]]; then
6666
python_version=$(python3 -V 2>&1 | awk '{print $2}')
6767
if [ "$python_version" != "$SENTRY_PYTHON_VERSION" ]; then
6868
cat <<EOF

0 commit comments

Comments
 (0)