1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2026-02-12 20:31:00 +01:00

3 Commits

Author SHA1 Message Date
Omoeba
aeb9cdbde1 Merge branch 'ohmyzsh:master' into non-tty-auto-upgrade 2025-02-04 19:03:19 -08:00
Omoeba
ddb0d15354 Merge branch 'ohmyzsh:master' into non-tty-auto-upgrade 2025-01-25 16:31:12 -08:00
Omoeba
b2ec1229c2 fix(updater): allow non-tty usage when update_mode=auto 2024-12-05 19:38:01 -08:00

View File

@@ -27,7 +27,7 @@ zstyle -s ':omz:update' mode update_mode || {
# - $ZSH is not a git repository
if [[ "$update_mode" = disabled ]] \
|| [[ ! -w "$ZSH" || ! -O "$ZSH" ]] \
|| [[ ! -t 1 ]] \
|| ([[ "$update_mode" != auto ]] && [[ ! -t 1 ]]) \
|| ! command git --version 2>&1 >/dev/null \
|| (builtin cd -q "$ZSH"; ! command git rev-parse --is-inside-work-tree &>/dev/null); then
unset update_mode