mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 13:50:09 +00:00
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
This commit is contained in:
parent
d47447a5e6
commit
5ffc0d036c
1 changed files with 3 additions and 1 deletions
|
@ -5,7 +5,9 @@ if [[ -z "$ZSH_CACHE_DIR" ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check for updates on initial load...
|
# Check for updates on initial load...
|
||||||
|
if [ "$DISABLE_AUTO_UPDATE" != "true" ]; then
|
||||||
source $ZSH/tools/check_for_upgrade.sh
|
source $ZSH/tools/check_for_upgrade.sh
|
||||||
|
fi
|
||||||
|
|
||||||
# Initializes Oh My Zsh
|
# Initializes Oh My Zsh
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue