diff options
author | John McLear <john@mclear.co.uk> | 2014-11-28 16:27:12 +0000 |
---|---|---|
committer | John McLear <john@mclear.co.uk> | 2014-11-28 16:27:12 +0000 |
commit | c6d7ed114ea3bbb8fc700f316fcaa145d290c4af (patch) | |
tree | bc110ee3c8c236e1f0d977ebcb47bdea335dee78 /bin/updatePlugins.sh | |
parent | a642deaa72eef3e6e457271de93156ccac010696 (diff) | |
download | etherpad-lite-c6d7ed114ea3bbb8fc700f316fcaa145d290c4af.zip |
script to update all plugins with one command on CLI
Diffstat (limited to 'bin/updatePlugins.sh')
-rwxr-xr-x | bin/updatePlugins.sh | 12 |
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 + |