fix(updater): bypass aliases when calling zsh in update check (#14178)

This commit is contained in:
Sam Thomas authored and GitHub committed 2026-11-27 15:33:06 -08:00
1 parent 113f9b2475
commit da85047297
1 file changed
+2 -2
+2 -2
View File
@@ -160,13 +160,13 @@ function update_ohmyzsh() {
fi
if [[ "$update_mode" != background-alpha ]] \
&& LANG= ZSH="$ZSH" zsh -f "$ZSH/tools/upgrade.sh" -i -v $verbose_mode -c $cooldown_days; then
&& LANG= ZSH="$ZSH" command zsh -f "$ZSH/tools/upgrade.sh" -i -v $verbose_mode -c $cooldown_days; then
update_last_updated_file
return $?
fi
local exit_status error
if error=$(LANG= ZSH="$ZSH" zsh -f "$ZSH/tools/upgrade.sh" -i -v silent -c $cooldown_days 2>&1); then
if error=$(LANG= ZSH="$ZSH" command zsh -f "$ZSH/tools/upgrade.sh" -i -v silent -c $cooldown_days 2>&1); then
update_last_updated_file 0 "Update successful"
else
exit_status=$?