fixes
This commit is contained in:
parent
b610d01325
commit
1b5d455d8a
@ -239,11 +239,16 @@ start_spinner() {
|
|||||||
|
|
||||||
{
|
{
|
||||||
while [ "$SPINNER_ACTIVE" -eq 1 ]; do
|
while [ "$SPINNER_ACTIVE" -eq 1 ]; do
|
||||||
|
if [ -t 2 ]; then
|
||||||
printf "\r\e[2K%s %b" "${TAB}${spinner_frames[spin_i]}${TAB}" "${YW}${SPINNER_MSG}${CL}" >&2
|
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[@]}))
|
spin_i=$(((spin_i + 1) % ${#spinner_frames[@]}))
|
||||||
sleep "$interval"
|
sleep "$interval"
|
||||||
done
|
done
|
||||||
} 2>/dev/null &
|
} &
|
||||||
|
|
||||||
local pid=$!
|
local pid=$!
|
||||||
if kill -0 "$pid" 2>/dev/null; then
|
if kill -0 "$pid" 2>/dev/null; then
|
||||||
|
@ -86,7 +86,7 @@ setting_up_container() {
|
|||||||
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
|
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
|
||||||
systemctl disable -q --now systemd-networkd-wait-online.service
|
systemctl disable -q --now systemd-networkd-wait-online.service
|
||||||
msg_ok "Set up Container OS"
|
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
|
# This function checks the network connection by pinging a known IP address and prompts the user to continue if the internet is not connected
|
||||||
|
Loading…
x
Reference in New Issue
Block a user