diff options
author | Carlo Sala <carlosalag@protonmail.com> | 2023-01-03 10:02:03 +0100 |
---|---|---|
committer | Carlo Sala <carlosalag@protonmail.com> | 2023-01-03 10:02:05 +0100 |
commit | 3fca9c8933afc5c118a73cedb171a3c7b8e92730 (patch) | |
tree | fa57ffde01b42e0f8d260067a69836e4f0b31ead /tools | |
parent | 00c37b6991895aac0398a24d7d8b78cda63dec05 (diff) | |
download | zsh-3fca9c8933afc5c118a73cedb171a3c7b8e92730.tar.gz zsh-3fca9c8933afc5c118a73cedb171a3c7b8e92730.tar.bz2 zsh-3fca9c8933afc5c118a73cedb171a3c7b8e92730.zip |
fix(upgrade): check if git is available and working
macOS seems to break dev tools when updating the system. This should
prevent the previous issues. See #11309
Closes #11420
Diffstat (limited to 'tools')
-rw-r--r-- | tools/check_for_upgrade.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh index cc527e72d..3a6bb6555 100644 --- a/tools/check_for_upgrade.sh +++ b/tools/check_for_upgrade.sh @@ -24,7 +24,7 @@ zstyle -s ':omz:update' mode update_mode || { # - git is unavailable on the system. if [[ "$update_mode" = disabled ]] \ || [[ ! -w "$ZSH" || ! -O "$ZSH" ]] \ - || ! command -v git &>/dev/null; then + || ! command git --version 2>&1 >/dev/null; then unset update_mode return fi |