Skip to content

Commit 44d5b94

Browse files
committed
Fix reading secondary config files
1 parent 37b053f commit 44d5b94

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/hflow

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ function hflow_run() {
148148
}
149149
}
150150
// 2. Look for secondary config files -- workflow.config.{name}.json
151-
var configFiles = glob.sync("workflow.config.*.json");
151+
let globOpts = {"cwd": wfDirFull, "absolute": true};
152+
var configFiles = glob.sync("workflow.config.*.json", globOpts);
152153
configFiles.forEach(function(file) {
153154
try {
154155
let rawdata = fs.readFileSync(file);

0 commit comments

Comments
 (0)