Skip to content
Snippets Groups Projects
Commit 8dd187de authored by Bob Mottram's avatar Bob Mottram
Browse files

sudo

parent 830278ca
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment