Unified · Split
| @@ -66,7 +66,7 @@ unset PIC INPATH CUE CHARSET · 65 unmodified lines | |||
| 66 | FORCE=0 | 66 | FORCE=0 |
| 67 | 67 | ||
| 68 | # do not forget to update before commit | 68 | # do not forget to update before commit |
| 69 | VERSION=88 | 69 | VERSION=89 |
| 70 | 70 | ||
| 71 | HELP="\${cG}split2flac version: ${VERSION} | 71 | HELP="\${cG}split2flac version: ${VERSION} |
| 72 | Splits one big \${cU}APE/FLAC/WV/WAV\$cZ\$cG audio image (or a collection) into \${cU}FLAC/M4A/MP3/OGG_VORBIS/WAV\$cZ\$cG tracks with tagging and renaming. | 72 | Splits one big \${cU}APE/FLAC/WV/WAV\$cZ\$cG audio image (or a collection) into \${cU}FLAC/M4A/MP3/OGG_VORBIS/WAV\$cZ\$cG tracks with tagging and renaming. |
| @@ -232,7 +232,7 @@ $msg "${cG}Output dir :$cZ ${DIR:?Output directory was not set}\n" · 159 unmodified lines | |||
| 232 | 232 | ||
| 233 | # replaces a tag name with the value of the tag. $1=pattern $2=tag_name $3=tag_value | 233 | # replaces a tag name with the value of the tag. $1=pattern $2=tag_name $3=tag_value |
| 234 | update_pattern () { | 234 | update_pattern () { |
| 235 | # replace '/' with '\' | 235 | # replace '/' with '\' and '&' with '\&' for proper sed call |
| 236 | tag_name=$(echo "$2" | sed 's,/,\\\\,g;s,&,\\&,g') | 236 | tag_name=$(echo "$2" | sed 's,/,\\\\,g;s,&,\\&,g') |
| 237 | tag_value=$(echo "$3" | sed 's,/,\\\\,g;s,&,\\&,g') | 237 | tag_value=$(echo "$3" | sed 's,/,\\\\,g;s,&,\\&,g') |
| 238 | 238 | ||