Unverified Commit 5ffc0d03 authored by Ye Shu's avatar Ye Shu Committed by GitHub
Browse files

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
parent d47447a5
...@@ -5,7 +5,9 @@ if [[ -z "$ZSH_CACHE_DIR" ]]; then ...@@ -5,7 +5,9 @@ if [[ -z "$ZSH_CACHE_DIR" ]]; then
fi fi
# Check for updates on initial load... # 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 # Initializes Oh My Zsh
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment