diff --git a/cli/Valet/Site.php b/cli/Valet/Site.php index a30f8c2..6ff5b5d 100644 --- a/cli/Valet/Site.php +++ b/cli/Valet/Site.php @@ -79,9 +79,9 @@ function unlink($name) */ function pruneLinks() { - if ($this->files->isDir($sitesPath = $this->sitesPath())) { - $this->files->removeBrokenLinksAt($sitesPath); - } + $this->files->ensureDirExists($this->sitesPath(), user()); + + $this->files->removeBrokenLinksAt($this->sitesPath()); } /**