diff --git a/EMS/client-helper-bundle/src/Command/Local/UploadAssetsCommand.php b/EMS/client-helper-bundle/src/Command/Local/UploadAssetsCommand.php index 38bedb86a..e0b167aca 100644 --- a/EMS/client-helper-bundle/src/Command/Local/UploadAssetsCommand.php +++ b/EMS/client-helper-bundle/src/Command/Local/UploadAssetsCommand.php @@ -147,6 +147,11 @@ private function uploadEmsArchive(): string $archive = Archive::fromDirectory($directory, $algo); $progressBar = $this->io->createProgressBar($archive->getCount()); foreach ($this->coreApi->file()->heads(...$archive->getHashes()) as $hash) { + if (true === $hash) { + $progressBar->advance(); + continue; + } + $file = $archive->getFirstFileByHash($hash); $uploadHash = $this->coreApi->file()->uploadFile($directory.DIRECTORY_SEPARATOR.$file->filename); if ($uploadHash !== $hash) {