tldr: shell script does nothing, not even an error
I'm in need for a little help with a Hazel rule I'm trying to build.
The rule selects files from multiple sub-directories based on some criteria, then copies them to another folder. So far so good, all working.
After the copy, I need to change the modification date of the copied file so that I can see long it has been since it was copied. I created a shell script that executes
- Code: Select all
touch -mac $1
I tested that command on the shell and it does what I need.
The problem is, when it gets executed within Hazel nothing happens. In the logs theres no indication of an error or anything. I tried adding in echo commands, in the hopes that those would get written down in the logs, but nothing.
Now, I wonder whether the command gets even executed, or if there's some other error going on. The file date don't get modified either...
Anyone got a hint?
edit: typos