Skip to content

Commit

Permalink
Fix nested files being put in the wrong directory
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwathan committed Jul 16, 2015
1 parent cabe968 commit ace7941
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jigsaw
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ $jigsaw->registerHandler($container[DefaultHandler::class]);

$buildCommand = new BuildCommand($jigsaw, $sourcePath, $buildPath);

$app = new Symfony\Component\Console\Application('Jigsaw', '0.0.1');
$app = new Symfony\Component\Console\Application('Jigsaw', '0.3.1');
$app->add($buildCommand);
$app->add($container[InitCommand::class]);
$app->run();
2 changes: 1 addition & 1 deletion src/Jigsaw.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ private function getDirectory($file)
private function getPrettyDirectory($file)
{
if ($file->extension() === 'html' && $file->name() !== 'index.html') {
return $file->relativePath() . $file->basename();
return "{$file->relativePath()}/{$file->basename()}";
}

return $file->relativePath();
Expand Down

0 comments on commit ace7941

Please sign in to comment.