Toasty27/codecraft-init-script — comment on commit f160239c63d811d014f85180cfed2b1a2ad70558
File:  line 0
By Toasty27:

The issue was that I was comparing the output of the checksums, which includes the location argument it's given (i.e. cksum dir/file.txt outputs [checksum] dir/file.txt). Since the locations are different, the boolean operation always returned false. However, if chksum (and md5sum, and sha1sum) receive input from stdout, the "dir/file.txt" part is replaced with a dash, which allows the boolean operation to return true (as long as the backup was successful).

The code is still ugly and still needs improvements, but at least it works now. Now we just need to tie it into the ramdisk function.....