Config file path fix
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2020-09-14 12:14:22 +02:00
parent 746bf55bcd
commit 076ee50c0f
1 changed files with 3 additions and 1 deletions

View File

@ -13,7 +13,9 @@ let configFiles = [
];
for (let configFile of configFiles) {
const filePath = path.join(__dirname, configFile);
if (!configFile.includes(configPath))
configFile = path.join(__dirname, configFile);
if (fs.existsSync(filePath)) {
const conf = require(filePath);
for (let prop in conf)