From b4e908331a023b59e0d4bb38100a022a6b3a8cab Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 12 Aug 2022 10:02:04 -0700 Subject: [PATCH] Better test for interactive mode --- manylinux/do-build.sh | 2 +- manylinux/tasks.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manylinux/do-build.sh b/manylinux/do-build.sh index 844b7ef5..0dfdcf0b 100755 --- a/manylinux/do-build.sh +++ b/manylinux/do-build.sh @@ -93,7 +93,7 @@ for pyver in $PYTHONS; do do_build $pyver done -if [ -n $INTERACTIVE ]; then +if [ "$INTERACTIVE" == "yes" ]; then exec /bin/bash -i fi diff --git a/manylinux/tasks.py b/manylinux/tasks.py index eb950825..2870c512 100644 --- a/manylinux/tasks.py +++ b/manylinux/tasks.py @@ -60,6 +60,6 @@ def build(ctx, pythons='', keep=False, interactive=False, arch='x86_64'): pythons = pythons.split(',') pythons = ' '.join(pythons) cmd = f'/scripts/do-build.sh {version} {pythons}' - extra = '-e INTERACTIVE=1' if interactive else '' + extra = '-e INTERACTIVE=yes' if interactive else '' run(ctx, cmd, keep, extra, arch)