From fb1b651b3cf38fd741a3871ea480ffd964c556ec Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Thu, 15 May 2025 14:39:56 +0200 Subject: [PATCH] Update core.func --- misc/core.func | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/core.func b/misc/core.func index ad8012e..29e45ad 100644 --- a/misc/core.func +++ b/misc/core.func @@ -242,6 +242,7 @@ spinner_frames=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏') # Ensure POSIX compatibility across Alpine and Debian/Ubuntu # === Spinner Start === start_spinner() { + detect_os local msg="$1" local spin_i=0 local interval=0.1 @@ -250,7 +251,7 @@ start_spinner() { SPINNER_MSG="$msg" SPINNER_ACTIVE=1 - if [[ "$CORE_OS" == "alpine" ]]; then + if [[ "${CORE_OS:-}" == "alpine" ]]; then { while [[ "$SPINNER_ACTIVE" -eq 1 ]]; do printf "\r\e[2K⠋ %b" "$SPINNER_MSG" >&2