mirror of
https://github.com/artegoser/pimi-launcher-core.git
synced 2024-11-22 12:16:21 +03:00
Fix java check when the path contains spaces (#32)
This commit is contained in:
parent
22c7b8254f
commit
30acf07e90
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ class Handler {
|
||||||
|
|
||||||
checkJava(java) {
|
checkJava(java) {
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
child.exec(`${java} -version`, (error, stdout, stderr) => {
|
child.exec(`"${java}" -version`, (error, stdout, stderr) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
resolve({
|
resolve({
|
||||||
run: false,
|
run: false,
|
||||||
|
|
Loading…
Add table
Reference in a new issue