Update utils.sh

This commit is contained in:
MacRimi 2025-02-03 15:39:08 +01:00 committed by GitHub
parent 922fa96dd3
commit cc8eff1914
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -88,6 +88,10 @@ msg_info() {
# Display warning or highlighted information message
msg_warn() {
if [ -n "$SPINNER_PID" ] && ps -p $SPINNER_PID > /dev/null; then
kill $SPINNER_PID > /dev/null
fi
printf "\e[?25h"
local msg="$1"
echo -e "${BFR}${TAB}${YWB}${CL} ${YWB}${msg}${CL}"
}
@ -104,9 +108,15 @@ msg_ok() {
# Display error message
msg_error() {
echo -e " ${RD}[ERROR] $1${CL}"
if [ -n "$SPINNER_PID" ] && ps -p $SPINNER_PID > /dev/null; then
kill $SPINNER_PID > /dev/null
fi
printf "\e[?25h"
local msg="$1"
echo -e "${BFR}${TAB}${RD}[ERROR] ${msg}${CL}"
}
# Initialize cache
initialize_cache() {
if [ ! -f "$CACHE_FILE" ]; then
@ -218,9 +228,10 @@ EOF
}
show_proxmenu_logo_m() {
clear
local color="${1:-$GN}"
echo -e "${YW}"
clear
echo -e "${color}"
cat << 'EOF'
██████╗ ██████╗ ██████╗ ██╗ ██╗███╗ ███╗███████╗███╗ ██╗██╗ ██╗
██╔══██╗██╔══██╗██╔═══██╗╚██╗██╔╝████╗ ████║██╔════╝████╗ ██║██║ ██║