浏览代码

fix issue with toolkit version detection

windchargerj 11 月之前
父节点
当前提交
61c3134289
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 4 3
      src/main/kotlin/io/xmake/utils/execute/Instruction.kt

+ 4 - 3
src/main/kotlin/io/xmake/utils/execute/Instruction.kt

@@ -28,9 +28,10 @@ val probeXmakeLocCommand = GeneralCommandLine("which")
     )
     .withCharset(Charsets.UTF_8)
 
-val probeXmakeVersionCommand = GeneralCommandLine()
-    .withParameters("--version")
-    .withCharset(Charsets.UTF_8)
+val probeXmakeVersionCommand
+    get() = GeneralCommandLine()
+        .withParameters("--version")
+        .withCharset(Charsets.UTF_8)
 
 val probeXmakeTargetCommand = GeneralCommandLine()
     .withParameters("l")