diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2023-04-07 03:10:36 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2023-04-07 03:10:36 +0200 |
commit | 3f0d90e1e2f190756d0d1d84ca74a7f169ec26d3 (patch) | |
tree | 3f186921dd0853c8d3a5433ad22f972da57e44e3 /hooks | |
parent | 1598ca502afc93663a163aa2a9f8a248f38ce949 (diff) | |
download | dotfiles-3f0d90e1e2f190756d0d1d84ca74a7f169ec26d3.tar.gz |
housekeeping hook
Diffstat (limited to 'hooks')
-rwxr-xr-x | hooks/housekeeping.hook | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/hooks/housekeeping.hook b/hooks/housekeeping.hook index 7fc77a9..15e4dda 100755 --- a/hooks/housekeeping.hook +++ b/hooks/housekeeping.hook @@ -5,10 +5,12 @@ git submodule update #.files is used to tell scripts where to look for the dotfiles [ -f "$HOME/.files" ] && source "$HOME/.files" -if [ "$DOTFILEBASE" != "$(pwd)" ] && yes_no "'.files' out of date. Regenerate?"; then +if [ "$DOTFILEBASE" != "$(pwd)" ]; then + echo "\~/.files is our of date. Updating." echo "DOTFILEBASE=\"$(pwd)\"" > $HOME/.files fi -if [ ! -f "$HOME/.files.config" ] && yes_no ".files.config does not exist. Populate with defaults?"; then +if [ ! -f "$HOME/.files.config" ]; then + echo "Installing default configuration in ~/.files.config" cp "config.default" "$HOME/.files.config" fi |