From b193afe50a68ec83b349d93b0beb51e5dd5b83f1 Mon Sep 17 00:00:00 2001 From: bretello Date: Thu, 14 Sep 2023 22:38:57 +0200 Subject: [PATCH] upgrade script: avoid printing extra line on source --- extras/check_for_update.zsh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extras/check_for_update.zsh b/extras/check_for_update.zsh index 47406ef..e38984f 100755 --- a/extras/check_for_update.zsh +++ b/extras/check_for_update.zsh @@ -49,7 +49,7 @@ function update_dotfiles() { zmodload -F zsh/stat b:zstat if mtime=$(zstat +mtime "$DOTFILES/update.lock" 2>/dev/null); then if (( (mtime + 3600 * 24) < EPOCHSECONDS )); then - command rm -rf "$DOTFILES/update.lock" + command rm -f "$DOTFILES/update.lock" fi fi @@ -65,7 +65,6 @@ function update_dotfiles() { trap " unset -f current_epoch _update_dotfiles_update update_dotfiles &>/dev/null command rmdir '$DOTFILES/update.lock' &>/dev/null - echo return 1 " EXIT INT QUIT