Shell script doesn't work even though rules match

I have this rule
that triggers this shell script
The conversion works in the command line of Terminal with the current matching file in place "$1", but only if I add an output name at the end will it encode from Hazel. Does Hazel have issues with leaving off info to the shell?
This is in macOS Big Sur 11.5.2 on M1 hardware.
Any suggestions on what to improve/change?

that triggers this shell script
- Code: Select all
afconvert -d aac -f 'm4af' $1
The conversion works in the command line of Terminal with the current matching file in place "$1", but only if I add an output name at the end will it encode from Hazel. Does Hazel have issues with leaving off info to the shell?
This is in macOS Big Sur 11.5.2 on M1 hardware.
Any suggestions on what to improve/change?