Even better
This commit is contained in:
parent
1771494895
commit
3b1e30686d
|
@ -263,11 +263,7 @@ update-npm() {
|
|||
|
||||
start_npm_update=`date +%s`
|
||||
echo -e "\033[32;1m=== Updating node packages ===\033[0m"
|
||||
|
||||
for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f3)
|
||||
do
|
||||
npm install -g `echo $package | cut -d '@' -f 1`
|
||||
done
|
||||
npm update -g
|
||||
|
||||
seconds=$((`date +%s` - $start_npm_update ))
|
||||
formatted=`date -ud "@$seconds" +'%H hours %M minutes %S seconds'`
|
||||
|
|
Loading…
Reference in New Issue