From 3b1e30686d4e037d5fc78669882d0f4d2a56380f Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Wed, 5 Jun 2019 09:52:50 +0200 Subject: [PATCH] Even better --- bin/update | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bin/update b/bin/update index 0ec854a..3a68252 100755 --- a/bin/update +++ b/bin/update @@ -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'`