Created
January 15, 2014 09:47
-
-
Save MoOx/8433540 to your computer and use it in GitHub Desktop.
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/zsh | |
source $DIR_DOTFILES/backpack/functions.sh | |
echo_title_installupdate "Ruby Gems" | |
#source gemu | |
DIR_RUBYGEMS=/Library/Ruby/Gems/2.0.0/gems | |
typeset -A PACKAGES | |
PACKAGES=( | |
sass "sass --pre" | |
compass "compass --pre" | |
scss-lint "scss-lint" | |
ceaser-easing ceaser-easing | |
animate-sass ceaser-easing | |
compass-normalize compass-normalize | |
) | |
for PKG in ${(k)PACKAGES}; do | |
if ! type ${PACKAGES[$PKG]} || ! ls $DIR_RUBYGEMS/${PACKAGES[$PKG]}-* > /dev/null | |
then | |
sudo gem install $PKG | |
else | |
echo_info "${PACKAGES[$PKG]} available, skip install of $PKG" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment