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}*
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
sudo apt-get install -y curl npm
curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
sudo apt-get install -y nodejs
sudo npm install i18next-conv -g
${SUDO} apt-get install -y curl npm
curl -sL https://deb.nodesource.com/setup_0.12 | ${SUDO} bash -
${SUDO} apt-get install -y nodejs
${SUDO} npm install i18next-conv -g
fi
}