Skip to content

Commit

Permalink
Merge pull request #27 from artemmolotov/patch-1
Browse files Browse the repository at this point in the history
Fixes fatal error in `generate-oauth2-keys` (#26)
  • Loading branch information
froschdesign authored Apr 15, 2021
2 parents f696ae1 + f843ba7 commit 7c1ca82
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/generate-oauth2-keys
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ if (!extension_loaded('openssl')) {

// find the best dir
if (
// get path of data dir of the parent application
($dataDir = realpath(__DIR__ . '/../../../../data'))
// see if there's a data dir of the parent application
file_exists($dataDir = realpath(__DIR__ . '/../../../../data'))
&& file_exists($dataDir)
) {
printf("Found a good location for keys:\n%s\n\n", $dataDir);
} elseif (
Expand Down

0 comments on commit 7c1ca82

Please sign in to comment.