diff --git a/lib/check/all.sh b/lib/check/all.sh index f352162..8cf60f0 100644 --- a/lib/check/all.sh +++ b/lib/check/all.sh @@ -248,7 +248,7 @@ check_macos_update() { spinner_started=true fi - local softwareupdate_timeout="${MO_SOFTWAREUPDATE_TIMEOUT:-10}" + local softwareupdate_timeout=10 if sw_output=$(run_with_timeout "$softwareupdate_timeout" softwareupdate -l --no-scan 2> /dev/null); then : else diff --git a/lib/clean/brew.sh b/lib/clean/brew.sh index eeb69ca..0c3c593 100644 --- a/lib/clean/brew.sh +++ b/lib/clean/brew.sh @@ -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 diff --git a/lib/clean/project.sh b/lib/clean/project.sh index d0a1fb3..c5342f3 100644 --- a/lib/clean/project.sh +++ b/lib/clean/project.sh @@ -292,8 +292,8 @@ is_protected_purge_artifact() { scan_purge_targets() { local search_path="$1" local output_file="$2" - local min_depth="${MOLE_PURGE_MIN_DEPTH:-$PURGE_MIN_DEPTH_DEFAULT}" - local max_depth="${MOLE_PURGE_MAX_DEPTH:-$PURGE_MAX_DEPTH_DEFAULT}" + local min_depth="$PURGE_MIN_DEPTH_DEFAULT" + local max_depth="$PURGE_MAX_DEPTH_DEFAULT" if [[ ! "$min_depth" =~ ^[0-9]+$ ]]; then min_depth="$PURGE_MIN_DEPTH_DEFAULT" fi