diff options
author | Ye Shu <chshu@protonmail.ch> | 2020-06-18 08:07:13 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-18 10:07:13 +0200 |
commit | 5ffc0d036c587741fd25092e7809dad2b00b3677 (patch) | |
tree | 0c9549d5c07dd56503930976b95dda13adf6aba1 /oh-my-zsh.sh | |
parent | d47447a5e63715ae6ab6c2f46924dc8766c8e746 (diff) | |
download | zsh-5ffc0d036c587741fd25092e7809dad2b00b3677.tar.gz zsh-5ffc0d036c587741fd25092e7809dad2b00b3677.tar.bz2 zsh-5ffc0d036c587741fd25092e7809dad2b00b3677.zip |
init: don't run update check if DISABLE_AUTO_UPDATE (#9040)
skip the update check at initialization if DISABLE_AUTO_UPDATE is set to true
Diffstat (limited to 'oh-my-zsh.sh')
-rw-r--r-- | oh-my-zsh.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh index 741bad510..5b057256d 100644 --- a/oh-my-zsh.sh +++ b/oh-my-zsh.sh @@ -5,7 +5,9 @@ if [[ -z "$ZSH_CACHE_DIR" ]]; then fi # Check for updates on initial load... -source $ZSH/tools/check_for_upgrade.sh +if [ "$DISABLE_AUTO_UPDATE" != "true" ]; then + source $ZSH/tools/check_for_upgrade.sh +fi # Initializes Oh My Zsh |