From 3c064cf2fd3b9626d3beb22bf0bd6a9ec2ffd0fc Mon Sep 17 00:00:00 2001 From: Brian Zalewski <59970525+ProfessorManhattan@users.noreply.github.com> Date: Mon, 27 Nov 2023 23:12:15 +0000 Subject: [PATCH] Logg styling fix --- home/dot_local/bin/executable_logg | 2 +- scripts/cloudflared-ssh.sh | 2 +- scripts/homebrew.sh | 2 +- scripts/partials/logg | 2 +- scripts/pfsense.sh | 2 +- scripts/provision.sh | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/home/dot_local/bin/executable_logg b/home/dot_local/bin/executable_logg index 8809a918..22072ee0 100644 --- a/home/dot_local/bin/executable_logg +++ b/home/dot_local/bin/executable_logg @@ -160,7 +160,7 @@ logger() { elif [ "$1" == 'start' ]; then "$GUM_PATH" style " $("$GUM_PATH" style --foreground="#00ff00" "▶") $("$GUM_PATH" style --bold "$(format "$2")")" elif [ "$1" == 'success' ]; then - "$GUM_PATH" style "$("$GUM_PATH" style --foreground="#00ff00" "✔") $("$GUM_PATH" style --bold "$(format "$2")")" + "$GUM_PATH" style " $("$GUM_PATH" style --foreground="#00ff00" "✔") $("$GUM_PATH" style --bold "$(format "$2")")" elif [ "$1" == 'warn' ]; then "$GUM_PATH" style " $("$GUM_PATH" style --foreground="#d1d100" "◆") $("$GUM_PATH" style --bold --background="#ffff00" --foreground="#000000" " WARNING ") $("$GUM_PATH" style --bold "$(format "$2")")" else diff --git a/scripts/cloudflared-ssh.sh b/scripts/cloudflared-ssh.sh index 8069da30..fc1f6585 100644 --- a/scripts/cloudflared-ssh.sh +++ b/scripts/cloudflared-ssh.sh @@ -100,7 +100,7 @@ logg() { fi elif [ "$TYPE" == 'success' ]; then if command -v gum > /dev/null; then - gum style "$(gum style --foreground="#00ff00" "✔") $(gum style --bold "$MSG")" + gum style " $(gum style --foreground="#00ff00" "✔") $(gum style --bold "$MSG")" else echo "SUCCESS: $MSG" fi diff --git a/scripts/homebrew.sh b/scripts/homebrew.sh index 29fed6cf..b0eb87ce 100644 --- a/scripts/homebrew.sh +++ b/scripts/homebrew.sh @@ -69,7 +69,7 @@ logg() { fi elif [ "$TYPE" == 'success' ]; then if command -v gum > /dev/null; then - gum style "$(gum style --foreground="#00ff00" "✔") $(gum style --bold "$MSG")" + gum style " $(gum style --foreground="#00ff00" "✔") $(gum style --bold "$MSG")" else echo "SUCCESS: $MSG" fi diff --git a/scripts/partials/logg b/scripts/partials/logg index c9c5b1eb..45e7e28d 100644 --- a/scripts/partials/logg +++ b/scripts/partials/logg @@ -56,7 +56,7 @@ logg() { fi elif [ "$TYPE" == 'success' ]; then if command -v gum > /dev/null; then - gum style "$(gum style --foreground="#00ff00" "✔") $(gum style --bold "$MSG")" + gum style " $(gum style --foreground="#00ff00" "✔") $(gum style --bold "$MSG")" else echo "SUCCESS: $MSG" fi diff --git a/scripts/pfsense.sh b/scripts/pfsense.sh index a4660d6d..18816c37 100644 --- a/scripts/pfsense.sh +++ b/scripts/pfsense.sh @@ -64,7 +64,7 @@ logg() { fi elif [ "$TYPE" == 'success' ]; then if command -v gum > /dev/null; then - gum style "$(gum style --foreground="#00ff00" "✔") $(gum style --bold "$MSG")" + gum style " $(gum style --foreground="#00ff00" "✔") $(gum style --bold "$MSG")" else echo "SUCCESS: $MSG" fi diff --git a/scripts/provision.sh b/scripts/provision.sh index e156cc4e..1e46d220 100644 --- a/scripts/provision.sh +++ b/scripts/provision.sh @@ -109,7 +109,7 @@ logg() { fi elif [ "$TYPE" == 'success' ]; then if command -v gum > /dev/null; then - gum style "$(gum style --foreground="#00ff00" "✔") $(gum style --bold "$MSG")" + gum style " $(gum style --foreground="#00ff00" "✔") $(gum style --bold "$MSG")" else echo "SUCCESS: $MSG" fi