Fix for incorrent errors about non-empty output directory
This commit is contained in:
parent
f8cf01dd43
commit
0dc9ace168
|
@ -108,7 +108,7 @@ class Packager
|
||||||
if (file_exists($this->getOutputPath())) {
|
if (file_exists($this->getOutputPath())) {
|
||||||
$iterator = new \DirectoryIterator($this->getOutputPath());
|
$iterator = new \DirectoryIterator($this->getOutputPath());
|
||||||
foreach ($iterator as $path) {
|
foreach ($iterator as $path) {
|
||||||
if ($path != '.' || $path != '..') {
|
if ($path != '.' && $path != '..') {
|
||||||
echo "OUTPUT DIRECTORY MUST BE EMPTY! Something exists, exit immediately!" . PHP_EOL;
|
echo "OUTPUT DIRECTORY MUST BE EMPTY! Something exists, exit immediately!" . PHP_EOL;
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue