webworld888/post-merge.githook.example
2021-10-26 19:14:12 +09:00

22 lines
476 B
PHP

#!/usr/bin/env php
<?php
/*
|--------------------------------------------------------------------------
| post-merge hook
|--------------------------------------------------------------------------
|
| Remove interception proxy class files.
| To install, copy to .git/hooks folder, rename with 'post-merge' and `chmod +x post-merge`
|
*/
$files = glob('storage/app/interception/*');
foreach ($files as $file) {
if (is_file($file)) {
unlink($file);
}
}
exit(0);