Created
May 10, 2016 19:01
-
-
Save mkjasinski/908f71a402b96ec62ba85ef16718d9cb to your computer and use it in GitHub Desktop.
[shell] npm updater
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
set -x | |
for package in $(sudo npm -g outdated --parseable --depth=0 | cut -d: -f4) | |
do | |
sudo npm -g install "$package" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment