Created
February 28, 2013 07:54
-
-
Save nickserv/5055038 to your computer and use it in GitHub Desktop.
A simple bash script that updates Bower packages and Bootswatch themes for a website
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/bash | |
| # Updates Bower packages and reinstalls latest versions of Bootswatch themes | |
| function bootswatch { | |
| pushd components/bootstrap.css/css > /dev/null | |
| for theme in $*; do | |
| echo "Downloading $theme theme" | |
| curl http://bootswatch.com/$theme/bootstrap.css -so bootstrap-$theme.css | |
| curl http://bootswatch.com/$theme/bootstrap.min.css -so bootstrap-$theme.min.css | |
| done | |
| popd > /dev/null | |
| } | |
| echo "Updating gem dependencies..." | |
| bundle update | |
| pushd public > /dev/null | |
| echo "Updating Bower packages..." | |
| bower update | |
| echo "Updating Bootswatch themes..." | |
| bootswatch cyborg slate cosmo | |
| popd > /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment