Skip to content

Commit

Permalink
fix: theme install
Browse files Browse the repository at this point in the history
  • Loading branch information
jevantang committed Mar 23, 2024
1 parent d0fe52f commit 70b85b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/Commands/ThemeInstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function handle()
{
try {
$path = $this->argument('path');
$themeDirictoryPath = config('themes.path.themes');
$themeDirictoryPath = config('themes.paths.themes');

if ($this->option('is_dir')) {
$pluginDirectory = $path;
Expand Down Expand Up @@ -75,8 +75,6 @@ public function handle()
return Command::FAILURE;
}

$theme->manualAddNamespace();

event('theme:installing', [[
'fskey' => $fskey,
]]);
Expand Down
2 changes: 1 addition & 1 deletion src/Support/Zip.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public function ensureDoesntHaveSubdir(string $targetPath): string
}

$fileCount = count($files);
if ($fileCount > 1) {
if (1 < $fileCount && $fileCount <= 3) {
throw new \RuntimeException("Cannot handle the zip file, zip file count is: {$fileCount}, extract path is: {$targetPath}");
}

Expand Down

0 comments on commit 70b85b6

Please sign in to comment.