aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap.sh
diff options
context:
space:
mode:
authorMathias Bynens <mathias@qiwi.be>2011-09-08 22:48:34 +0200
committerMathias Bynens <mathias@qiwi.be>2011-09-08 22:48:34 +0200
commit59616162efb4d6b1d66bc9ce7d13129660cf6d11 (patch)
tree7aa738b96154a5cf0dfd64ab0611cfd411c8c9ac /bootstrap.sh
parent9f0ec47c7f50a93a325eb5252ab3ebdd4dda1610 (diff)
downloaddotfiles-59616162efb4d6b1d66bc9ce7d13129660cf6d11.tar.gz
dotfiles-59616162efb4d6b1d66bc9ce7d13129660cf6d11.tar.bz2
dotfiles-59616162efb4d6b1d66bc9ce7d13129660cf6d11.zip
Show a warning and ask for user confirmation before running the
bootstrapper. Fixes #8.
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-xbootstrap.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index 1b810d6..fabc394 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -1 +1,6 @@
-git pull && rsync --exclude ".git/" --exclude ".DS_Store" --exclude "bootstrap.sh" --exclude "README.md" -av . ~ \ No newline at end of file
+git pull
+read -p "This may overwrite existing files in your home directory. Are you sure? (y/n) " -n 1
+if [[ $REPLY =~ ^[Yy]$ ]]; then
+ rsync --exclude ".git/" --exclude ".DS_Store" --exclude "bootstrap.sh" --exclude "README.md" -av . ~
+fi
+echo \ No newline at end of file