Better test for interactive mode

This commit is contained in:
Robin Dunn
2022-08-12 10:02:04 -07:00
parent 23ed4b8096
commit b4e908331a
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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)