aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinstall.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/install.sh b/install.sh
index 0a250d0..f0229b3 100755
--- a/install.sh
+++ b/install.sh
@@ -136,7 +136,8 @@ housekeeping() {
git submodule update
#.files is used to tell scripts where to look for the dotfiles
- if yes_no "Generate '.files'?"; then
+ [ -f "$HOME/.files" ] && source "$HOME/.files"
+ if [ $DOTFILEBASE != "$(pwd)" ] && yes_no "'.files' out of date. Regenerate?"; then
echo "DOTFILEBASE=\"$(pwd)\"" > $HOME/.files
fi
}