Skip to content

Commit

Permalink
Forgot to touch the file if it doesn't exist yet.
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptiklemur committed Jul 19, 2014
1 parent 6da9982 commit 2eec6b0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/BldrPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,13 @@ private function getBlockLoader()

$config = $this->composer->getConfig();

return $this->blockLoader = $config->has('block-loader') ? $config->get('block-loader') : '.bldr/blocks.yml';
$this->blockLoader = $config->has('block-loader') ? $config->get('block-loader') : '.bldr/blocks.yml';

if (!file_exists($this->blockLoader)) {
touch($this->blockLoader);
}

return $this->blockLoader;
}

/**
Expand Down

0 comments on commit 2eec6b0

Please sign in to comment.