iTank ideas

Solución al error «zsh: operation not permitted» ejecutando un script Bash

Es posible que tras programar un script Bash y darle permisos de ejecución

chmod +x mi-script.sh

Te encuentres con el mensaje de error

zsh: operation not permitted: ./mi-script.sh

A mi me ocurrió tras renombrar el script.

El motivo es que MacOS Quarantine lo consideró sospechoso y deniega su ejecución

Ejecuta:

xattr -d com.apple.quarantine /mi-script.sh

Et voilá...

Vía apple.stackexchange.com
WordPress Theme: BlogGrid by TwoPoints.