aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatijs Brinkhuis <matijs@gmail.com>2011-09-28 15:29:37 +0300
committerMatijs Brinkhuis <matijs@gmail.com>2011-09-28 15:29:37 +0300
commit37301ad41aa1d3496e56f57d76b01d5e5297cda9 (patch)
treef293390420d8ff2528808b0b7d159eae71926283
parent61a11c914eaa568b313b6528ab592859904e62e7 (diff)
downloaddotfiles-37301ad41aa1d3496e56f57d76b01d5e5297cda9.tar.gz
dotfiles-37301ad41aa1d3496e56f57d76b01d5e5297cda9.tar.bz2
dotfiles-37301ad41aa1d3496e56f57d76b01d5e5297cda9.zip
Undid some silly mistakes and made the script more simplerder
-rwxr-xr-xbootstrap.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index 49c0ad1..a359fa6 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -1,11 +1,9 @@
-currentdir=`pwd`
-dotdir=`dirname $0`
-cd $dotdir
+#!/bin/bash
+cd "$(dirname "$0")";
git pull
read -p "This may overwrite existing files in your home directory. Are you sure? (y/n) " -n 1
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
rsync --exclude ".git/" --exclude ".DS_Store" --exclude "bootstrap.sh" --exclude "README.md" -av . ~
fi
-source "$HOME/.bash_profile"
-cd $currentdir \ No newline at end of file
+source "$HOME/.bash_profile" \ No newline at end of file