Fixed failure when running from within phar

This commit is contained in:
2017-01-10 17:11:23 +01:00
parent 70c510ff9b
commit 213997b0d0
2 changed files with 4 additions and 4 deletions

View File

@ -211,10 +211,10 @@ class Manifest
$it = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($source->path));
foreach ($it as $item) {
if ($item->isDir()) continue;
$items[] = (object)['src'=>$item->getPathname(),'dest'=>null];
$items[] = (object)['src'=>realpath($item->getPathname()),'dest'=>$item->getPathname()];
}
} elseif ($source->type == 'file') {
$items[] = (object)['src'=>$source->path,'dest'=>null];
$items[] = (object)['src'=>realpath($source->path),'dest'=>$item->getPathname()];
} else {
log_warn("Unsupported source type: %s", $source->type);
}