summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJohn McLear <john@mclear.co.uk>2014-11-28 16:27:12 +0000
committerJohn McLear <john@mclear.co.uk>2014-11-28 16:27:12 +0000
commitc6d7ed114ea3bbb8fc700f316fcaa145d290c4af (patch)
treebc110ee3c8c236e1f0d977ebcb47bdea335dee78 /bin
parenta642deaa72eef3e6e457271de93156ccac010696 (diff)
downloadetherpad-lite-c6d7ed114ea3bbb8fc700f316fcaa145d290c4af.zip
script to update all plugins with one command on CLI
Diffstat (limited to 'bin')
-rwxr-xr-xbin/updatePlugins.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/updatePlugins.sh b/bin/updatePlugins.sh
new file mode 100755
index 00000000..d696eca7
--- /dev/null
+++ b/bin/updatePlugins.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+#Move to the folder where ep-lite is installed
+cd `dirname $0`
+
+#Was this script started in the bin folder? if yes move out
+if [ -d "../bin" ]; then
+ cd "../"
+fi
+
+npm outdated --depth=0 | grep -v "^Package" | awk '{print $1}' | xargs npm install $1 --save-dev
+