From 731a0d1b553ba9c4e66a6906097d43031747be6c Mon Sep 17 00:00:00 2001 From: Foxlet Date: Sat, 8 Jun 2019 02:29:23 -0400 Subject: [PATCH] [TOOLS] Check for easy_install. --- tools/FetchMacOS/fetch.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/FetchMacOS/fetch.sh b/tools/FetchMacOS/fetch.sh index c236ab2..4900cc9 100755 --- a/tools/FetchMacOS/fetch.sh +++ b/tools/FetchMacOS/fetch.sh @@ -8,7 +8,12 @@ SCRIPTDIR="$(dirname "$0")"; cd $SCRIPTDIR initpip() { - sudo easy_install pip + if [ -x "$(command -v easy_install)" ]; then + sudo easy_install pip + else + echo "Please install python3-pip or easy_install before continuing." + exit 1; + fi pip install -r requirements.txt --user }