mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 00:40:06 +01:00
Pre-create the parent .config dir if needed
On a fresh OSX install, the ~/.config/ dir doesn't always exist. This checks and creates it if needed.
This commit is contained in:
committed by
Matt Stauffer
parent
25d6e47eb1
commit
027812c25f
@@ -41,6 +41,8 @@ function install()
|
||||
*/
|
||||
function createConfigurationDirectory()
|
||||
{
|
||||
$this->files->ensureDirExists(preg_replace('~/valet$~', '', VALET_HOME_PATH), user());
|
||||
|
||||
$oldPath = posix_getpwuid(fileowner(__FILE__))['dir'].'/.valet';
|
||||
|
||||
if ($this->files->isDir($oldPath)) {
|
||||
|
||||
Reference in New Issue
Block a user