fix colored output
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user