When the folder doesn't exist we shouldn't run the commands and leave gracefully with a warning.
cp: cannot stat '/home/runner/work/gulbenkian-checkout/gulbenkian-checkout/vendor/26b/php-pre-commit/../26b/php-pre-commit/pre-commit': No such file or directory
chmod: cannot access '/home/runner/work/gulbenkian-checkout/gulbenkian-checkout/.git/hooks/pre-commit': No such file or directory
Script php-pre-commit handling the post-install-cmd event returned with error code 1
When the folder doesn't exist we shouldn't run the commands and leave gracefully with a warning.