diff --git a/src/print_meta_flac b/src/print_meta_flac index 63d1392..7057f09 100644 --- a/src/print_meta_flac +++ b/src/print_meta_flac @@ -11,12 +11,12 @@ # } print_meta_flac() { - local fileList="${@}" + local fileList=(${@}) for file in ${fileList[@]}; do [[ ! -f ${file} ]] && return 1 local METADATA=$(awk 'BEGIN{FS="]: ";ORS=";"}{if($1 ~ /comment\[/){print $2}}' <<< $(metaflac --list --block-type=VORBIS_COMMENT "${file}")) - echo -n ${METADATA} | sed 's|.$||' + echo ${METADATA} | sed 's|.$||' done }