From 5a4de9940d1ca6946a6e27306e87f9efc3970c4f Mon Sep 17 00:00:00 2001 From: fabs Date: Thu, 18 Feb 2021 19:03:00 +0100 Subject: [PATCH] fix colored output --- music_tagmove_lib | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/music_tagmove_lib b/music_tagmove_lib index 88ab259..cfa56d0 100644 --- a/music_tagmove_lib +++ b/music_tagmove_lib @@ -78,6 +78,7 @@ function read_tag_id3 { local tag="$1" local file="$2" + # TODO: Amorphis/Eclipse eclipse uses 3char id3v2 rfc822 codes declare -A id3v2_map=( [artist]=TPE1 \ [album]=TALB \ [title]=TIT2 \ @@ -265,7 +266,7 @@ function cmd_wrap { cmd_prefix='exec' fi local cmd_text=$(violet printf "%s" "${@:1:1}"; printf ' "%s"' "${@:2}") - printf "%s %s\n" $(colthis grey "[$cmd_prefix]") "$cmd_text" + printf "%s %s\n" $(grey printf "[$cmd_prefix]") "$cmd_text" if [[ -z $DRY_RUN ]]; then "$@" fi