From 1b5d455d8ac50519646fde59183c3be6f4d81e81 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Thu, 15 May 2025 10:06:17 +0200 Subject: [PATCH] fixes --- misc/core.func | 9 +++++++-- misc/install.func | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/misc/core.func b/misc/core.func index 66967d9..03ebae9 100644 --- a/misc/core.func +++ b/misc/core.func @@ -239,11 +239,16 @@ start_spinner() { { while [ "$SPINNER_ACTIVE" -eq 1 ]; do - printf "\r\e[2K%s %b" "${TAB}${spinner_frames[spin_i]}${TAB}" "${YW}${SPINNER_MSG}${CL}" >&2 + if [ -t 2 ]; then + printf "\r\e[2K%s %b" "${TAB}${spinner_frames[spin_i]}${TAB}" "${YW}${SPINNER_MSG}${CL}" >&2 + else + printf "%s...\n" "$SPINNER_MSG" >&2 + break + fi spin_i=$(((spin_i + 1) % ${#spinner_frames[@]})) sleep "$interval" done - } 2>/dev/null & + } & local pid=$! if kill -0 "$pid" 2>/dev/null; then diff --git a/misc/install.func b/misc/install.func index f670b5c..8b4b479 100644 --- a/misc/install.func +++ b/misc/install.func @@ -86,7 +86,7 @@ setting_up_container() { rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED systemctl disable -q --now systemd-networkd-wait-online.service msg_ok "Set up Container OS" - msg_custom "${CM}" "${GN}" "Network Connected: ${BL}$(hostname -I)" + #msg_custom "${CM}" "${GN}" "Network Connected: ${BL}$(hostname -I)" } # This function checks the network connection by pinging a known IP address and prompts the user to continue if the internet is not connected