Commit 5cee5eab authored by Hendrik Heneke's avatar Hendrik Heneke
Browse files

When building phar, unlink existing file only of it exists

parent 39b01411
<?php
$pharName = 'cfgen.phar';
unlink($pharName);
if (file_exists($pharName)) {
unlink($pharName);
}
$p = new Phar($pharName, FilesystemIterator::CURRENT_AS_FILEINFO | FilesystemIterator::KEY_AS_FILENAME, $pharName);
$p->startBuffering();
$p->setStub("#!/usr/bin/env php\n<?php Phar::mapPhar(); include \"phar://$pharName/src/cfgen.php\"; __HALT_COMPILER(); ?>");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment