From 0bfa411f7a1de799f1900c98fdad0f1864e08ab8 Mon Sep 17 00:00:00 2001 From: bretello Date: Mon, 22 Aug 2022 10:11:24 +0200 Subject: [PATCH] zsh: cleanup selfupdate mechanism --- brethil_dotfile.sh | 6 ++---- check_for_update.zsh | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/brethil_dotfile.sh b/brethil_dotfile.sh index fca01e2..ae8efb4 100755 --- a/brethil_dotfile.sh +++ b/brethil_dotfile.sh @@ -1,10 +1,8 @@ # vim:ft=zsh ts=2 sw=2 sts=2 export LANG=en_US.UTF-8 -# Check for update, set DISABLE_UPDATE_PROMPT=true to disable the prompt and automatically update -if [ "$DISABLE_AUTO_UPDATE" != "true" ]; then - source "${DOTFILES}/check_for_update.zsh" -fi +# Set DISABLE_DOTFILES_AUTOUPDATE=false to disable updates +source "${DOTFILES}/check_for_update.zsh" # theme-related variables export ZSH_CUSTOM="$DOTFILES" diff --git a/check_for_update.zsh b/check_for_update.zsh index 80ac291..c6b16be 100755 --- a/check_for_update.zsh +++ b/check_for_update.zsh @@ -37,7 +37,6 @@ function update_dotfiles() { } () { - if [[ -n $DOTFILES_FORCEUPDATE ]]; then update_dotfiles; return;