Merge pull request #3 from tteck/main

[pull] main from tteck:main
This commit is contained in:
pull[bot]
2024-04-21 19:59:04 +00:00
committed by GitHub
5 changed files with 33 additions and 26 deletions
+2 -2
View File
@@ -66,5 +66,5 @@ build_container
description
msg_ok "Completed Successfully!\n"
echo -e "${APP} should be accessible via the following IP.
${BL}http://${IP}:6800${CL}"
echo -e "${APP} should be reachable by going to the following URL.
${BL}http://${IP}:6880${CL}"
+8 -8
View File
@@ -17,7 +17,7 @@ CL=$(echo "\033[m")
CM="${GN}${CL}"
CROSS="${RD}${CL}"
BFR="\\r\\033[K"
HOLD="-"
HOLD=" "
# This sets error handling options and defines the error_handler function to handle errors
set -Eeuo pipefail
@@ -36,13 +36,13 @@ function error_handler() {
# This function displays a spinner.
function spinner() {
printf "\e[?25l"
spinner="/-\\|/-\\|"
spin_i=0
while true; do
printf "\b%s" "${spinner:spin_i++%${#spinner}:1}"
sleep 0.1
done
local chars="/-\|"
local spin_i=0
printf "\e[?25l"
while true; do
printf "\r \e[36m%s\e[0m" "${chars:spin_i++%${#chars}:1}"
sleep 0.1
done
}
# This function displays an informational message with a yellow color.