sudo
This commit is contained in:
parent
830278caaf
commit
8dd187de5a
15
translate
15
translate
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue