Skip to content

Commit 20ce92a

Browse files
committed
adding the PATH to the WIT Cache command environment to try to resolve the dirname issue a few customers has reported
1 parent 57132aa commit 20ce92a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

electron/app/js/witCache.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const { getLogger } = require('./wktLogging');
1010
const { getImagetoolShellScript } = require('./wktTools');
1111
const { executeScriptCommand } = require('./childProcessExecutor');
1212

13+
/* global process */
1314
async function cacheInstallers(cacheConfig) {
1415
const results = {
1516
isSuccess: true
@@ -104,7 +105,8 @@ async function executeCacheCommand(javaHome, installerType, installerPath, insta
104105
`--version=${installerVersion}`
105106
];
106107
const env = {
107-
JAVA_HOME: javaHome
108+
JAVA_HOME: javaHome,
109+
PATH: process.env.PATH
108110
};
109111

110112
const result = {

0 commit comments

Comments
 (0)