소스 검색

Fix clear cache when a dir does not exist, fixes #3810

Jordi Boggiano 10 년 전
부모
커밋
b098a2fdde
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/Composer/Command/ClearCacheCommand.php

+ 2 - 2
src/Composer/Command/ClearCacheCommand.php

@@ -53,13 +53,13 @@ EOT
             if (!$cachePath) {
                 $io->writeError("<info>Cache directory does not exist ($key): $cachePath</info>");
 
-                return;
+                continue;
             }
             $cache = new Cache($io, $cachePath);
             if (!$cache->isEnabled()) {
                 $io->writeError("<info>Cache is not enabled ($key): $cachePath</info>");
 
-                return;
+                continue;
             }
 
             $io->writeError("<info>Clearing cache ($key): $cachePath</info>");