cleaner update logic doesnt error when nothing to do
This commit is contained in:
parent
254edffa9c
commit
e1406b826b
|
@ -8,5 +8,13 @@ if [ -d "../bin" ]; then
|
||||||
cd "../"
|
cd "../"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
npm outdated --depth=0 | grep -v "^Package" | awk '{print $1}' | xargs npm install $1 --save-dev
|
# npm outdated --depth=0 | grep -v "^Package" | awk '{print $1}' | xargs npm install $1 --save-dev
|
||||||
|
OUTDATED=`npm outdated --depth=0 | grep -v "^Package" | awk '{print $1}'`
|
||||||
|
# echo $OUTDATED
|
||||||
|
if test -n "$OUTDATED"; then
|
||||||
|
echo "Plugins require update, doing this now..."
|
||||||
|
echo "Updating $OUTDATED"
|
||||||
|
npm install $OUTDATED --save-dev
|
||||||
|
else
|
||||||
|
echo "Plugins are all up to date"
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue