1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-15 22:10:03 +00:00
This commit is contained in:
Tw93
2025-11-27 07:51:38 +09:00
parent 36341369b6
commit 7c4c106558
5 changed files with 37 additions and 34 deletions

View File

@@ -696,7 +696,10 @@ update_via_homebrew() {
# Redirect brew output to temp file to avoid interfering with spinner # Redirect brew output to temp file to avoid interfering with spinner
# Store exit code in a separate file to avoid wait issues with zsh # Store exit code in a separate file to avoid wait issues with zsh
brew_exit_file="${brew_tmp_file}.exit" brew_exit_file="${brew_tmp_file}.exit"
(brew update > "$brew_tmp_file" 2>&1 </dev/null; echo $? > "$brew_exit_file") & (
brew update > "$brew_tmp_file" 2>&1 < /dev/null
echo $? > "$brew_exit_file"
) &
brew_pid=$! brew_pid=$!
local elapsed=0 local elapsed=0