1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-22 11:31:30 +01:00

functions: fix dotfiles_selfupdate()

This commit is contained in:
bretello 2022-02-16 10:33:01 +01:00
parent f73659aa45
commit b86622e598
Signed by: brethil
GPG Key ID: 876AAC6290170FE7
2 changed files with 7 additions and 1 deletions

View File

@ -37,6 +37,12 @@ function update_dotfiles() {
} }
() { () {
if [[ -n $DOTFILES_FORCEUPDATE ]]; then
update_dotfiles;
return;
fi
emulate -L zsh emulate -L zsh
local epoch_target mtime option LAST_EPOCH local epoch_target mtime option LAST_EPOCH

View File

@ -4,7 +4,7 @@
## Selfupdate ## Selfupdate
function dotfiles_selfupdate function dotfiles_selfupdate
{ {
(. $DOTFILES/check_for_update.zsh && _upgrade_dotfiles) (DOTFILES_FORCEUPDATE=1 source $DOTFILES/check_for_update.zsh || echo "[dotfiles_selfupdate] failed")
} }
## get cheat sheets for commands from cheat.sh. Usage: cheat commandname ## get cheat sheets for commands from cheat.sh. Usage: cheat commandname