From 70017cf7b7b26e5d6c80f02950190646aab1f55d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Thu, 3 Nov 2016 12:03:33 +0100 Subject: [PATCH] Fall back to `pip` when no `pip3` on Python3 --- common/configure_fresh_system | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/configure_fresh_system b/common/configure_fresh_system index 56fae96c..d6e2a2c9 100755 --- a/common/configure_fresh_system +++ b/common/configure_fresh_system @@ -170,7 +170,8 @@ $SUDO npm install -g reveal-md echo "Installing fancy differ" $SUDO npm install -g diff-so-fancy -if [[ -z $NOPYTHON3 ]]; then +pip3_path=`which pip3` +if [[ -z $NOPYTHON3 && -x pip3_path ]]; then PIP=pip3 else PIP=pip