Merge tag '0.0.12' into develop

Fixes not empty output folder
This commit is contained in:
Walter Dal Mut 2015-05-26 08:37:30 +02:00
commit 248c14d301
2 changed files with 2 additions and 2 deletions

View file

@ -1 +1 @@
0.0.11
0.0.12

View file

@ -108,7 +108,7 @@ class Packager
if (file_exists($this->getOutputPath())) {
$iterator = new \DirectoryIterator($this->getOutputPath());
foreach ($iterator as $path) {
if ($path != '.' || $path != '..') {
if ($path != '.' && $path != '..') {
echo "OUTPUT DIRECTORY MUST BE EMPTY! Something exists, exit immediately!" . PHP_EOL;
exit();
}