Source of file composer-script.php
Size: 0,490 Bytes - Last Modified: 2021-12-24T06:44:39+00:00
/var/www/docs.ssmods.com/process/src/composer-script.php
123456789101112 | <?php // This script will copy a pre-commit hook from this repo to a developers local git // The pre-commit hook will be run whenever a developer runs "git commit" // This script will run after running composer install, via the "post-install-cmd" in composer.json $gitHookFilename = '.git/hooks/pre-commit'; $shellHookFilename = 'pre-commit.sh'; if (file_exists($gitHookFilename)) { unlink($gitHookFilename); } copy($shellHookFilename, $gitHookFilename); chmod($gitHookFilename, 0744); |