Fix config load path

This commit is contained in:
Niklas Keller
2016-06-04 19:51:02 +02:00
parent c4d15e2e26
commit 9f849691c2
2 changed files with 9 additions and 6 deletions

View File

@@ -117,7 +117,7 @@ function normalizePath($path) {
* @return string|null Resolves to the config path or null.
*/
function getConfigPath() {
$paths = isPhar() ? [substr(dirname(Phar::running(true)), strlen("phar://")) . "acme-client.yml"] : [];
$paths = isPhar() ? [substr(dirname(Phar::running(true)), strlen("phar://")) . "/acme-client.yml"] : [];
if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
if ($home = getenv("HOME")) {