diff --git a/src/wdm/debian/Packager.php b/src/wdm/debian/Packager.php index f7482f5..634f597 100644 --- a/src/wdm/debian/Packager.php +++ b/src/wdm/debian/Packager.php @@ -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(); }