Refactor pip installs to reduce duplication
This commit is contained in:
parent
b504829756
commit
5533f777f3
1 changed files with 4 additions and 2 deletions
|
@ -145,11 +145,13 @@ $SUDO npm install -g reveal-md
|
||||||
$SUDO npm install -g diff-so-fancy
|
$SUDO npm install -g diff-so-fancy
|
||||||
|
|
||||||
if [[ -z $NOPYTHON3 ]]; then
|
if [[ -z $NOPYTHON3 ]]; then
|
||||||
$SUDO pip3 install ws4py watchdog webassets Nikola --upgrade
|
PIP=pip3
|
||||||
else
|
else
|
||||||
$SUDO pip install ws4py watchdog webassets Nikola --upgrade
|
PIP=pip
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
$SUDO $PIP install pygments-style-solarized ws4py watchdog webassets Nikola --upgrade
|
||||||
|
|
||||||
if [[ -z $USER ]]; then
|
if [[ -z $USER ]]; then
|
||||||
USER=`whoami`
|
USER=`whoami`
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue