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}*
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue