And on the day that “mktemp” fails for some reason, that script will then delete your entire home directory.
That's a good point but an incredibly lazy comment. I think the possible failure of 'mktemp' could be protected against by using 'set -e' at the start of the script.