From 938a0dd9196e71deb583fb3d93cb1a4fc971d59f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 27 Jun 2021 18:42:37 +0100 Subject: [PATCH] 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. --- build/tools/httpbin.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/tools/httpbin.sh b/build/tools/httpbin.sh index c627b09d12..7b9f4df273 100644 --- a/build/tools/httpbin.sh +++ b/build/tools/httpbin.sh @@ -44,7 +44,7 @@ httpbin_launch() { esac # 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 fi