Fix java check when the path contains spaces (#32)

This commit is contained in:
Victor Korkoshko 2019-12-10 16:16:12 +03:00 committed by Pierce
parent 22c7b8254f
commit 30acf07e90

View file

@ -20,7 +20,7 @@ class Handler {
checkJava(java) {
return new Promise(resolve => {
child.exec(`${java} -version`, (error, stdout, stderr) => {
child.exec(`"${java}" -version`, (error, stdout, stderr) => {
if (error) {
resolve({
run: false,