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
master
Ye Shu 6 years ago committed by GitHub
parent d47447a5e6
commit 5ffc0d036c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      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

Loading…
Cancel
Save