Slightly improve check for pip in httpbin script
Using "-m pip" results in an unwanted usage message from pip, so use "-c 'import pip'" instead.
This commit is contained in:
@@ -44,7 +44,7 @@ httpbin_launch() {
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
# Ensure that we have at least some version of pip.
|
# Ensure that we have at least some version of pip.
|
||||||
if ! python3 -m pip; then
|
if ! python3 -c 'import pip'; then
|
||||||
sudo apt-get -q -o=Dpkg::Use-Pty=0 install python3-pip
|
sudo apt-get -q -o=Dpkg::Use-Pty=0 install python3-pip
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user