Skip to content

Instantly share code, notes, and snippets.

@devinceble
Created October 10, 2014 08:42
Show Gist options
  • Save devinceble/27e2b43fb1cd275873d6 to your computer and use it in GitHub Desktop.
Save devinceble/27e2b43fb1cd275873d6 to your computer and use it in GitHub Desktop.
Loop Update All Bower Lib's
#!/bin/bash
for dep in $(cat $1 | jq -r ".dependencies | to_entries | map(.key) | .[]")
do
bower install $dep --save
done
@devinceble
Copy link
Author

http://stedolan.github.io/jq/
it requires to jq to parse bower.json
Usage: bowerup bower.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment