Config file path fix
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
746bf55bcd
commit
076ee50c0f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue