Skip to content

Commit

Permalink
Create theme command will set directory permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
igaster committed Oct 11, 2019
1 parent 07f0df8 commit 0be810b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Commands/createTheme.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public function handle()
$assetPath = $this->anticipate("Where will assets be located?", [$themeName], $themeName);

// Calculate Absolute paths & check if they exist
$viewsPathFull = themes_path($viewsPath);
$assetPathFull = public_path($assetPath);
$viewsPathFull = themes_path($viewsPath, 0755, true);
$assetPathFull = public_path($assetPath, 0755, true);

if ($this->files->exists($viewsPathFull)) {
$this->error("Error: Folder already exists: $viewsPathFull");
Expand Down

0 comments on commit 0be810b

Please sign in to comment.