[print_meta_mtag] Fixed bug where sometimes first tag wouldn't get parsed
This commit is contained in:
parent
a731a3a8b7
commit
9d5e1271a4
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ print_meta_mtag() {
|
||||||
|
|
||||||
# If list of Tags isn't giving, assumes that we want to output all tags, and thus this
|
# If list of Tags isn't giving, assumes that we want to output all tags, and thus this
|
||||||
# generates all tags present in MTAG file
|
# generates all tags present in MTAG file
|
||||||
[[ -z "${tagList[@]}" ]] && local tagList=($(awk 'BEGIN{RS="[,]?\n";FS=" : "}{if($1!~"@"){print $1}}' ${FILE} | tr -d '[]{}" ' | awk '!seen[$0]++' | tail -n +3))
|
[[ -z "${tagList[@]}" ]] && local tagList=($(awk 'BEGIN{RS="[,]?\n";FS=" : "}{if($1!~"@"){print $1}}' ${FILE} | tr -d '[]{}" ' | awk '!seen[$0]++' | sed '/^&/d' | tail -n +2 ))
|
||||||
|
|
||||||
|
|
||||||
# Goes through every tag, determines it's original value, and then prints out.
|
# Goes through every tag, determines it's original value, and then prints out.
|
||||||
|
|
Loading…
Reference in a new issue