Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- which git >/dev/null 2>&1
- [ $? -ne 0 ] && echo "git required" && exit 1
- git clone git://github.com/steakknife/dotfiles.git ~/.dotfiles
- [ $? -ne 0 ] && echo "could not clone repo && exit 1
- pushd . >/dev/null 2>&1
- cd ~/.dotfiles
- which ruby >/dev/null 2>&1 && which gem >/dev/null 2>&1
- [ $? -ne 0 ] && echo "ruby and ruby gems required" && exit 1
- which rake >/dev/null 2>&1 || gem install rake
- [ $? -ne 0 ] && echo "could not install rake" && exit 1
- rake install
- popd >/dev/null 2>&1
Add Comment
Please, Sign In to add comment