[BUGFIX] missing out folder creation
This commit is contained in:
parent
c4351d8218
commit
659ee4d90b
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -2,4 +2,8 @@
|
|||
.buildpath
|
||||
.settings
|
||||
|
||||
vendor
|
||||
*.phar
|
||||
*.deb
|
||||
|
||||
src/*.tgz
|
||||
|
|
|
@ -21,7 +21,9 @@
|
|||
"php": ">=5.3.3"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-0": ["src/"]
|
||||
"psr-0": {
|
||||
"wdm": "src/"
|
||||
}
|
||||
},
|
||||
"repositories": [
|
||||
{
|
||||
|
|
|
@ -114,13 +114,15 @@ class Packager
|
|||
if (file_exists($this->_outputPath)) {
|
||||
$iterator = new \DirectoryIterator($this->_outputPath);
|
||||
foreach ($iterator as $path) {
|
||||
if ($path != '.' || $path != '..'); {
|
||||
if ($path != '.' || $path != '..') {
|
||||
echo "OUTPUT DIRECTORY MUST BE EMPTY! Something exists, exit immediately!" . PHP_EOL;
|
||||
exit();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
mkdir($this->_outputPath, 0777);
|
||||
|
||||
foreach ($this->_mountPoints as $path => $dest) {
|
||||
$this->_pathToPath($path, $this->_outputPath . DIRECTORY_SEPARATOR . $dest);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue