This commit is contained in:
Bob Mottram 2015-12-03 17:16:27 +00:00
parent 830278caaf
commit 8dd187de5a
1 changed files with 11 additions and 4 deletions

View File

@ -36,11 +36,18 @@ language=( fr de es )
COMMAND_FILES=src/${PROJECT_NAME}* COMMAND_FILES=src/${PROJECT_NAME}*
function install_i18next-conv { function install_i18next-conv {
SUDO=''
if [ -f /usr/bin/sudo ]; then
SUDO='sudo'
fi
if [ -f /usr/sbin/sudo ]; then
SUDO='sudo'
fi
if [ ! -f /usr/bin/i18next-conv ]; then if [ ! -f /usr/bin/i18next-conv ]; then
sudo apt-get install -y curl npm ${SUDO} apt-get install -y curl npm
curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash - curl -sL https://deb.nodesource.com/setup_0.12 | ${SUDO} bash -
sudo apt-get install -y nodejs ${SUDO} apt-get install -y nodejs
sudo npm install i18next-conv -g ${SUDO} npm install i18next-conv -g
fi fi
} }