removed confirmation prompt in upgrade option in nodebb executable

v1.18.x
Julian Lam 11 years ago
parent acc390f6ef
commit d48e749d54

@ -10,18 +10,10 @@ case "$1" in
;;
upgrade)
echo "Upgrading dependencies (this command is intended to be run after a successful \"git pull\")";
read -p "Continue? " yn
case $yn in
[Yy]* )
npm install
ls -d node_modules/nodebb* | xargs -n1 basename | xargs npm update
node app --upgrade
echo -e "\n\e[00;32mNodeBB Dependencies up-to-date!\e[00;00m";
;;
[Nn]* ) exit;;
* ) echo "Please answer yes or no.";;
esac
npm install
ls -d node_modules/nodebb* | xargs -n1 basename | xargs npm update
node app --upgrade
echo -e "\n\e[00;32mNodeBB Dependencies up-to-date!\e[00;00m";
;;
dev)

Loading…
Cancel
Save