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:
parent
f73659aa45
commit
b86622e598
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user