Created
February 27, 2022 22:24
-
-
Save AlexRogalskiy/e276e5ddb82a61befa58aec3acedec87 to your computer and use it in GitHub Desktop.
bootstrap dotfiles
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/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment