Using Hazel to process my downloads folder. I've figured out the subfolder rule, you'll be glad to hear, but my problem is when I use Hazel to:
"Sort file into subfolder with pattern extension".
This works fine the first time Hazel runs but when Hazel runs a second time it runs the initial subfolder rule again on the subfolder it created the first time and makes another inside that so ultimately my file path looks like this...
~/Downloads/dmg/dmg/dmg/dmg/dmg/Example.dmg
And this carries on until I stop Hazel, which happened about 8 hours and many, MANY subfolders later...LOL
Should I be using the "Ignore" command somehow, or does "Subfolder depth" have something to do with it?

Also where can I learn some basic shell scripting.
Many thanks...