I opened up the script and looked for my error. I found it just after the "mkdosfs" command. They'd redirected the output of the mkdosfs command into dev/null, so I decided to run the command myself to see what the error might really be.