Last active
August 14, 2016 15:09
-
-
Save jodelamo/2b27db7b988d47bc5687ba1d870f318c to your computer and use it in GitHub Desktop.
Only attempt to update outdates Ruby gems
This file contains hidden or 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 | |
# 1. List outdated gems | |
# 2. Remove everything after whitespace on each line | |
# 3. Translate newlines into whitespaces | |
gem update `gem outdated | cut -d ' ' -f 1 | tr '\n' ' '` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment