Today I made a small update to my mp3-to-ogg script. Specifically, it now supports file names with spaces, apostrophes, etc. (but not commas for some reason :( ).
I’m also using a function (which I source in ~/.bashrc) to ease exit-code checking in Bash scripts:
The Old Way:
if [[ $exit != 0 ]]
echo “some-command failed with code $exit”
The New Way:
die some-command $?
That’s it! Both scripts are available in the Magic section.