Browse Source

fix issue with toolkit version detection

windchargerj 11 months ago
parent
commit
61c3134289
1 changed files with 4 additions and 3 deletions
  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")