This commit is contained in:
CanbiZ 2025-05-15 10:06:17 +02:00
parent b610d01325
commit 1b5d455d8a
2 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -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