1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 15:04:42 +00:00

refactor: simplify configuration by removing unused environment variables

This commit is contained in:
Tw93
2026-01-03 13:34:19 +08:00
parent da7bb2cde2
commit f98aab6840
3 changed files with 5 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash
# Clean Homebrew caches and remove orphaned dependencies
# Env: MO_BREW_TIMEOUT, DRY_RUN
# Env: DRY_RUN
# Skips if run within 7 days, runs cleanup/autoremove in parallel with 120s timeout
clean_homebrew() {
command -v brew > /dev/null 2>&1 || return 0
@@ -44,7 +44,7 @@ clean_homebrew() {
fi
fi
# Run cleanup/autoremove in parallel with timeout guard per command.
local timeout_seconds=${MO_BREW_TIMEOUT:-120}
local timeout_seconds=120
local brew_tmp_file autoremove_tmp_file
local brew_pid autoremove_pid
local brew_exit=0