Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change/update cuetag.sh syntax #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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