X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Fsrc%2FConfig%2FDrushConfig.php;fp=vendor%2Fdrush%2Fdrush%2Fsrc%2FConfig%2FDrushConfig.php;h=3c2e79c9729a95d03c5c3b5c6b2c6bcf7531b3f4;hp=fab4da80696755b7f5b4dea46fed9d766aab6c1a;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/vendor/drush/drush/src/Config/DrushConfig.php b/vendor/drush/drush/src/Config/DrushConfig.php index fab4da806..3c2e79c97 100644 --- a/vendor/drush/drush/src/Config/DrushConfig.php +++ b/vendor/drush/drush/src/Config/DrushConfig.php @@ -39,12 +39,13 @@ class DrushConfig extends ConfigOverlay public function cache() { $candidates = [ + $this->get('drush.paths.cache-directory'), Path::join($this->home(), '.drush/cache'), Path::join($this->tmp(), 'drush-' . $this->user() . '/cache'), ]; $fs = new Filesystem(); - foreach ($candidates as $candidate) { + foreach (array_filter($candidates) as $candidate) { try { $fs->mkdir($candidate); return $candidate;