mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-06-28 04:06:54 +00:00
Update utils.sh
This commit is contained in:
parent
922fa96dd3
commit
cc8eff1914
@ -88,6 +88,10 @@ msg_info() {
|
|||||||
|
|
||||||
# Display warning or highlighted information message
|
# Display warning or highlighted information message
|
||||||
msg_warn() {
|
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"
|
local msg="$1"
|
||||||
echo -e "${BFR}${TAB}${YWB}${CL} ${YWB}${msg}${CL}"
|
echo -e "${BFR}${TAB}${YWB}${CL} ${YWB}${msg}${CL}"
|
||||||
}
|
}
|
||||||
@ -104,8 +108,14 @@ msg_ok() {
|
|||||||
|
|
||||||
# Display error message
|
# Display error message
|
||||||
msg_error() {
|
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
|
||||||
initialize_cache() {
|
initialize_cache() {
|
||||||
@ -218,9 +228,10 @@ EOF
|
|||||||
}
|
}
|
||||||
|
|
||||||
show_proxmenu_logo_m() {
|
show_proxmenu_logo_m() {
|
||||||
|
local color="${1:-$GN}"
|
||||||
|
|
||||||
clear
|
clear
|
||||||
|
echo -e "${color}"
|
||||||
echo -e "${YW}"
|
|
||||||
cat << 'EOF'
|
cat << 'EOF'
|
||||||
██████╗ ██████╗ ██████╗ ██╗ ██╗███╗ ███╗███████╗███╗ ██╗██╗ ██╗
|
██████╗ ██████╗ ██████╗ ██╗ ██╗███╗ ███╗███████╗███╗ ██╗██╗ ██╗
|
||||||
██╔══██╗██╔══██╗██╔═══██╗╚██╗██╔╝████╗ ████║██╔════╝████╗ ██║██║ ██║
|
██╔══██╗██╔══██╗██╔═══██╗╚██╗██╔╝████╗ ████║██╔════╝████╗ ██║██║ ██║
|
||||||
|
Loading…
x
Reference in New Issue
Block a user