Skip to content

Instantly share code, notes, and snippets.

@MoOx
Created January 15, 2014 09:47
Show Gist options
  • Save MoOx/8433540 to your computer and use it in GitHub Desktop.
Save MoOx/8433540 to your computer and use it in GitHub Desktop.
#!/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