Update dotfiles/.local/share/chezmoi/home/dot_local/bin/executable_logg

This commit is contained in:
Brian Zalewski 2022-11-24 18:47:16 +00:00
parent 59d924dfe2
commit 796715a00b

View file

@ -162,7 +162,7 @@ logger() {
format() { format() {
# shellcheck disable=SC2001,SC2016 # shellcheck disable=SC2001,SC2016
ANSI_STR="$(echo "$1" | sed 's/^\([^`]*\)`\([^`]*\)`/\1\\u001b[47;1;30m \2 \\e[0;39m/')" ANSI_STR="$(echo "$1" | sed 's/^\([^`]*\)`\([^`]*\)`/\1\\u001b[47;30m \2 \\e[39m/')"
if [[ $ANSI_STR == *'`'*'`'* ]]; then if [[ $ANSI_STR == *'`'*'`'* ]]; then
ANSI_STR="$(format "$ANSI_STR")" ANSI_STR="$(format "$ANSI_STR")"
fi fi