Files
dotfiles/bootstrap.sh
T
AJ AcevedoandMathias Bynens 5d1850e041 Update shebangs
If the user installs a custom Bash build, why not use it?

Ref. #196 and #198.
2013-04-27 07:25:47 +02:00

18 lines
438 B
Bash
Executable File

#!/usr/bin/env bash
cd "$(dirname "${BASH_SOURCE}")"
git pull origin master
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