Skip to content

Commit e4c1273

Browse files
authored
add default value to profile env variable (#3443)
* add default value to profile env variable * set env variable conditionally
1 parent 05a0611 commit e4c1273

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/command/run.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ module.exports = async function (test, options) {
88
// registering options globally to use in config
99
// Backward compatibility for --profile
1010
process.profile = options.profile;
11-
process.env.profile = options.profile;
11+
12+
if (options.profile) {
13+
process.env.profile = options.profile;
14+
}
15+
1216
const configFile = options.config;
1317

1418
let config = getConfig(configFile);

0 commit comments

Comments
 (0)