Skip to content

Commit 5d26fc6

Browse files
dynoVladimir Kotal
authored andcommitted
Command expects cmd to be a list of string
1 parent 433284d commit 5d26fc6

File tree

1 file changed

+1
-1
lines changed
  • tools/src/main/python/opengrok_tools/utils

1 file changed

+1
-1
lines changed

tools/src/main/python/opengrok_tools/utils/java.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def FindJava(self, logger):
8888
if os.path.isdir(java_home):
8989
java = os.path.join(java_home, 'bin', 'java')
9090
elif system_name == 'Darwin':
91-
cmd = Command('/usr/libexec/java_home')
91+
cmd = Command(['/usr/libexec/java_home'])
9292
cmd.execute()
9393
java = os.path.join(cmd.getoutputstr(), 'bin', 'java')
9494
elif system_name == 'Linux':

0 commit comments

Comments
 (0)