

Agreed on your points and usually I do 2. (name) and 3. (exit instead else) sometimes. For the [[
over [
, it usually matters only for word splitting and globbing behavior, if you do not enclose the variables between quotes I believe. But looking into the shellcheck entry, looks like there is no disadvantage. I may start doing this by default in the future too.
So thanks for the suggestions, I will update the script in a minute.
Edit: I always forget that Beehaw will break if I use the “lower than” character like in
, so I replaced it in the post with
cat %%EOF
which requires to change that line. And the example usage is gone for the moment.
Edit2 (21 hours later): I totally forgot to remove the indentation and else-branch. While doing so I also added a special option -h
, in case someone tries that. Not a big deal, but thought this should be.
crc32 is very common amongst emulation and roms. While often they provide md5sum too, crc32 is a bit faster on bulk.