mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-21 19:11:30 +01:00
functions: fix dotfiles_selfupdate()
This commit is contained in:
parent
f73659aa45
commit
b86622e598
|
@ -37,6 +37,12 @@ function update_dotfiles() {
|
|||
}
|
||||
|
||||
() {
|
||||
|
||||
if [[ -n $DOTFILES_FORCEUPDATE ]]; then
|
||||
update_dotfiles;
|
||||
return;
|
||||
fi
|
||||
|
||||
emulate -L zsh
|
||||
|
||||
local epoch_target mtime option LAST_EPOCH
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
## 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
|
||||
|
|
Loading…
Reference in New Issue
Block a user