Skip to content

Conversation

@slycordinator
Copy link

  1. changed quoting on variables according to recommendations from 'shellcheck' utility
  2. simplified checks for file type by adding lowercase() function
  3. changed expr math to use "$(())"
  4. changed check for existence of mid3v2/id3v2 to use the 'type' command instead of 'which'
    type is a shell-builtin, so it is preferable to using the external 'which' command
  5. corrected ID3 tag url typo (
  6. minor formatting (changing tabbing in 'case' commands for consistency
  7. changed double-quotes ("") to single quotes where variables were not referenced

Also removed the METAFLAC, VORBISCOMMENT, and TXTFILE variables by placing their contents in the VORBISTAG variable directly along with the comments explaining each of the options used

Thank you for the hard work. :)

1) changed quoting on variables according to recommendations from 'shellcheck' utility
2) simplified checks for file type by adding lowercase() function
3) changed expr math to use "$(())"
4) changed check for existence of mid3v2/id3v2 to use the 'type' command instead of 'which'
type is a shell-builtin, which makes it preferable to using the not-entirely-portable 'which' command
5) corrected ID3 tag url typo
6) minor formatting (changing tabbing in 'case' commands for consistency
7) changed double-quotes ("") to single quotes where variables were not referenced
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant