1
0
mirror of https://github.com/captn3m0/dotfiles.git synced 2024-07-05 20:09:25 +00:00
dotfiles/bootstrap.sh

18 lines
412 B
Bash
Raw Normal View History

2012-09-22 00:30:00 +00:00
#!/bin/bash
cd "$(dirname "$0")"
git pull
function doIt() {
rsync --exclude ".git/" --exclude ".DS_Store" --exclude "bootstrap.sh" --exclude "README.md" -av . ~
}
if [ "$1" == "--force" -o "$1" == "-f" ]; then
doIt
else
read -p "This may overwrite existing files in your home directory. Are you sure? (y/n) " -n 1
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
doIt
fi
fi
unset doIt
source ~/.bash_profile