Compare commits
No commits in common. "c4013c0723f95059339e882ff97b3f2bc1d56fcc" and "1771494895b55a2df18ca7e82ad2649d095174b2" have entirely different histories.
c4013c0723
...
1771494895
@ -263,7 +263,11 @@ update-npm() {
|
|||||||
|
|
||||||
start_npm_update=`date +%s`
|
start_npm_update=`date +%s`
|
||||||
echo -e "\033[32;1m=== Updating node packages ===\033[0m"
|
echo -e "\033[32;1m=== Updating node packages ===\033[0m"
|
||||||
npm update -g
|
|
||||||
|
for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f3)
|
||||||
|
do
|
||||||
|
npm install -g `echo $package | cut -d '@' -f 1`
|
||||||
|
done
|
||||||
|
|
||||||
seconds=$((`date +%s` - $start_npm_update ))
|
seconds=$((`date +%s` - $start_npm_update ))
|
||||||
formatted=`date -ud "@$seconds" +'%H hours %M minutes %S seconds'`
|
formatted=`date -ud "@$seconds" +'%H hours %M minutes %S seconds'`
|
||||||
@ -330,8 +334,7 @@ _print_help() {
|
|||||||
|
|
||||||
_print_usage() {
|
_print_usage() {
|
||||||
echo -e "\033[33mUSAGE:\033[0m"
|
echo -e "\033[33mUSAGE:\033[0m"
|
||||||
echo -e " \033[32mupdate\033[0m Auto-detect what to update and perform th update"
|
echo -e " update <subcommand>"
|
||||||
echo -e " \033[32mupdate <subcommand>\033[0m Calls the update subcommand"
|
|
||||||
echo
|
echo
|
||||||
echo -e "\033[33mSUBCOMMANDS:\033[0m"
|
echo -e "\033[33mSUBCOMMANDS:\033[0m"
|
||||||
echo -e " \033[32msystem\033[0m Updates the system (Debian, Archlinux, Fedora)"
|
echo -e " \033[32msystem\033[0m Updates the system (Debian, Archlinux, Fedora)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user