You might want to make a separate directory for your downloads, just a generic folder "wrestling" or whatever, and have SAB download the files to there, because this script moves the files and renames them. You seem to download them to their specific directory from SAB.
Quote: Failed conversion of ``'' using format ``%Y%m%d''
means that it didn't find a date. Strange.
So just make an arbitrary download folder then point sab to download your wrestling files to there.
Also, you can always test the script by cd into the directory that the file downloaded to (you have to be inside the folder so you can see the file) then test run the script via
Code:
bash /path/to/script/wrestling_mac.sh
this may be easier to do instead of downloading the file each time.
Here is a new version of the script, it will exit if it does not find a proper date. Also, I have commented out the rm function at the bottom until we get it sorted out.
wrestling_mac.sh