mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-24 04:21:31 +01:00
upgrade script: avoid printing extra line on source
This commit is contained in:
parent
323542a705
commit
b193afe50a
|
@ -49,7 +49,7 @@ function update_dotfiles() {
|
||||||
zmodload -F zsh/stat b:zstat
|
zmodload -F zsh/stat b:zstat
|
||||||
if mtime=$(zstat +mtime "$DOTFILES/update.lock" 2>/dev/null); then
|
if mtime=$(zstat +mtime "$DOTFILES/update.lock" 2>/dev/null); then
|
||||||
if (( (mtime + 3600 * 24) < EPOCHSECONDS )); then
|
if (( (mtime + 3600 * 24) < EPOCHSECONDS )); then
|
||||||
command rm -rf "$DOTFILES/update.lock"
|
command rm -f "$DOTFILES/update.lock"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -65,7 +65,6 @@ function update_dotfiles() {
|
||||||
trap "
|
trap "
|
||||||
unset -f current_epoch _update_dotfiles_update update_dotfiles &>/dev/null
|
unset -f current_epoch _update_dotfiles_update update_dotfiles &>/dev/null
|
||||||
command rmdir '$DOTFILES/update.lock' &>/dev/null
|
command rmdir '$DOTFILES/update.lock' &>/dev/null
|
||||||
echo
|
|
||||||
return 1
|
return 1
|
||||||
" EXIT INT QUIT
|
" EXIT INT QUIT
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user