Skip to content

Commit b148822

Browse files
authored
Fix unbound variable error (#1276)
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' ```
1 parent 9bb78f6 commit b148822

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/install_cpython.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function do_cpython_build {
4040
mkdir -p ${prefix}/lib
4141

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

0 commit comments

Comments
 (0)