Refactor pip installs to reduce duplication

This commit is contained in:
Cyryl Płotnicki 2016-10-16 17:53:28 +02:00
parent b504829756
commit 5533f777f3

View file

@ -145,11 +145,13 @@ $SUDO npm install -g reveal-md
$SUDO npm install -g diff-so-fancy
if [[ -z $NOPYTHON3 ]]; then
$SUDO pip3 install ws4py watchdog webassets Nikola --upgrade
PIP=pip3
else
$SUDO pip install ws4py watchdog webassets Nikola --upgrade
PIP=pip
fi
$SUDO $PIP install pygments-style-solarized ws4py watchdog webassets Nikola --upgrade
if [[ -z $USER ]]; then
USER=`whoami`
fi