Error “bash bad interpreter: Operation not permitted” while tryimg to run a oerfectly good bash script in the terminal.
Fix
$ ls -l@ script.sh
if output contains “com.apple.quarantine
” then delete attribute
$ xattr -d com.apple.quarantine script.sh