aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Angelopoulos <l4than.d3vers@gmail.com>2013-06-25 13:10:24 +0200
committerMathias Bynens <mathias@qiwi.be>2013-06-25 13:11:39 +0200
commit5b4362aa0e5a6ef278dcc593e120154eb938b2e5 (patch)
treeacf17cccc970ef346a182c26225fc2195da996bf
parentd17fede715eb6c59711f165927f47c4f473f9e4a (diff)
downloaddotfiles-5b4362aa0e5a6ef278dcc593e120154eb938b2e5.tar.gz
dotfiles-5b4362aa0e5a6ef278dcc593e120154eb938b2e5.tar.bz2
dotfiles-5b4362aa0e5a6ef278dcc593e120154eb938b2e5.zip
bootstrap.sh: Avoid `source` if there are no changes
Closes #220.
-rwxr-xr-xbootstrap.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index f088076..0e6e5db 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -4,6 +4,7 @@ git pull origin master
function doIt() {
rsync --exclude ".git/" --exclude ".DS_Store" --exclude "bootstrap.sh" \
--exclude "README.md" --exclude "LICENSE-MIT.txt" -av --no-perms . ~
+ source ~/.bash_profile
}
if [ "$1" == "--force" -o "$1" == "-f" ]; then
doIt
@@ -15,4 +16,3 @@ else
fi
fi
unset doIt
-source ~/.bash_profile