Merge tag '0.0.12' into develop
Fixes not empty output folder
This commit is contained in:
commit
248c14d301
2 changed files with 2 additions and 2 deletions
2
VERSION
2
VERSION
|
|
@ -1 +1 @@
|
|||
0.0.11
|
||||
0.0.12
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue