macOS: v 11.2.3 Chip Apple M1
I have given the Full Disk Access to Terminal and iTerm.
But when I run a Bash script to clean up the Trash directory I get "Give the Terminal.app Full Disk permission in the Security settings." error. When I run for Downloads directory, I don't have any problems.
I run this script through launchd plist file. I restarted the mac.
What can I do to avoid this error?