From 5990f27bb8b45101c604b0bc62d25c4457905a0a Mon Sep 17 00:00:00 2001 From: Theofilos Manitaras Date: Tue, 27 Apr 2021 16:36:37 +0200 Subject: [PATCH] Save exit status of ensurepip check --- bootstrap.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bootstrap.sh b/bootstrap.sh index 34f51c06cb..8964897472 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -71,11 +71,12 @@ fi # Check if ensurepip is installed $python -m ensurepip --version &> /dev/null +epip=$? export PATH=$(pwd)/external/usr/bin:$PATH # Install pip for Python 3 -if [ $? -eq 0 ]; then +if [ $epip -eq 0 ]; then CMD $python -m ensurepip --root $(pwd)/external/ --default-pip fi