Skip to content

Commit

Permalink
Fix unbound variable error (#1276)
Browse files Browse the repository at this point in the history
Regression introduced (and ignored) by #1262
Test plan:
```
% bash -c 'set -u; if [[ -z "${FOO}" ]]; then echo "bar"; fi' 
bash: FOO: unbound variable
(base) nshulga@nshulga-mbp builder % bash -c 'set -u; if [[ -z "${FOO+x}" ]]; then echo "bar"; fi'
bar
(base) nshulga@nshulga-mbp builder % FOO=1 bash -c 'set -u; if [[ -z "${FOO+x}" ]]; then echo "bar"; fi'

```
  • Loading branch information
malfet committed Jan 24, 2023
1 parent 9bb78f6 commit b148822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/install_cpython.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function do_cpython_build {
mkdir -p ${prefix}/lib

# -Wformat added for https://bugs.python.org/issue17547 on Python 2.6
if [[ -z ${WITH_OPENSSL} ]]; then
if [[ -z "${WITH_OPENSSL+x}" ]]; then
CFLAGS="-Wformat" ./configure --prefix=${prefix} --disable-shared $unicode_flags > /dev/null
else
CFLAGS="-Wformat" ./configure --prefix=${prefix} --with-openssl=${WITH_OPENSSL} --with-openssl-rpath=auto --disable-shared $unicode_flags > /dev/null
Expand Down

0 comments on commit b148822

Please sign in to comment.