aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap.sh
diff options
context:
space:
mode:
authorMathias Bynens <mathias@qiwi.be>2012-11-05 10:33:35 +0100
committerMathias Bynens <mathias@qiwi.be>2012-11-06 12:30:14 +0100
commit473766d3d0d4ea88c8fe98c6ffcd7d3956eec5fb (patch)
tree0ccb111fc278cadd3b2e8e07f554fc5795754977 /bootstrap.sh
parentd4c2cc697a7fa127558156a6d09d680285a63a62 (diff)
downloaddotfiles-473766d3d0d4ea88c8fe98c6ffcd7d3956eec5fb.tar.gz
dotfiles-473766d3d0d4ea88c8fe98c6ffcd7d3956eec5fb.tar.bz2
dotfiles-473766d3d0d4ea88c8fe98c6ffcd7d3956eec5fb.zip
README: Recommend sourcing the bootstrapper
Thanks to @svnpenn and @nvartolomei in https://github.com/mathiasbynens/dotfiles/commit/a77f4872f26d681a35cface9d6bcb4ad55fec752#commitcomment-2100022, and thanks to @janmoesen for the BASH_SOURCE pointer.
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-xbootstrap.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index 2170ab9..8a053a7 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-cd "$(dirname "$0")"
+cd "$(dirname "${BASH_SOURCE}")"
git pull
function doIt() {
rsync --exclude ".git/" --exclude ".DS_Store" --exclude "bootstrap.sh" --exclude "README.md" -av . ~