I don't understand why the script parses the string after the md5 sum is computed.
CSUM1=$(CHECKSUM "$1" | grep -om1 '^[0-9a-f]*')
It has to parse it because md5sum
, et al don't just put out the hash
$ md5sum lupu-528.005.iso
8ad170c46b523436776398fa5ce39fa4 *lupu-528.005.iso
How can I verify the the cmdline argument passed to the script is a real md5 hash
With that script the intention is to pass a file, not a hash.