Skip to content

Commit

Permalink
Merge pull request #24 from renatomefidf/hotfix/chdir
Browse files Browse the repository at this point in the history
Fix for the current directory for recipes
  • Loading branch information
rskuipers committed Jan 21, 2016
2 parents 9321a22 + 10c33b2 commit fe22ff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Soy/Cli.php
Expand Up @@ -121,7 +121,7 @@ private function bootstrap(array $arguments)

chdir(dirname($recipeFile));

$recipe = include_once $recipeFile;
$recipe = include_once basename($recipeFile);

if (!$recipe instanceof Recipe) {
throw new NoRecipeReturnedException('No recipe returned in file ' . realpath($recipeFile));
Expand Down

0 comments on commit fe22ff1

Please sign in to comment.