diff --git a/lib/core/log.sh b/lib/core/log.sh index b1bdb59..b5f5ae0 100644 --- a/lib/core/log.sh +++ b/lib/core/log.sh @@ -38,7 +38,7 @@ rotate_log_once() { [[ -n "${MOLE_LOG_ROTATED:-}" ]] && return 0 export MOLE_LOG_ROTATED=1 - local max_size="${MOLE_MAX_LOG_SIZE:-$LOG_MAX_SIZE_DEFAULT}" + local max_size="$LOG_MAX_SIZE_DEFAULT" if [[ -f "$LOG_FILE" ]] && [[ $(get_file_size "$LOG_FILE") -gt "$max_size" ]]; then mv "$LOG_FILE" "${LOG_FILE}.old" 2> /dev/null || true ensure_user_file "$LOG_FILE" diff --git a/lib/core/ui.sh b/lib/core/ui.sh index 951233b..fe98143 100755 --- a/lib/core/ui.sh +++ b/lib/core/ui.sh @@ -321,7 +321,7 @@ stop_inline_spinner() { with_spinner() { local msg="$1" shift || true - local timeout="${MOLE_CMD_TIMEOUT:-180}" + local timeout=180 start_inline_spinner "$msg" local exit_code=0 if [[ -n "${MOLE_TIMEOUT_BIN:-}" ]]; then @@ -333,7 +333,7 @@ with_spinner() { # Get spinner characters mo_spinner_chars() { - local chars="${MO_SPINNER_CHARS:-|/-\\}" + local chars="|/-\\" [[ -z "$chars" ]] && chars="|/-\\" printf "%s" "$chars" } diff --git a/tests/clean_system_maintenance.bats b/tests/clean_system_maintenance.bats index c76c6e1..6df0727 100644 --- a/tests/clean_system_maintenance.bats +++ b/tests/clean_system_maintenance.bats @@ -247,8 +247,6 @@ rm -f "$HOME/.cache/mole/brew_last_cleanup" "$@" } - MO_BREW_TIMEOUT=2 - brew() { case "$1" in cleanup)