Kaynağa Gözat

fix issue with toolkit version detection

windchargerj 11 ay önce
ebeveyn
işleme
61c3134289

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

@@ -28,9 +28,10 @@ val probeXmakeLocCommand = GeneralCommandLine("which")
     )
     )
     .withCharset(Charsets.UTF_8)
     .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()
 val probeXmakeTargetCommand = GeneralCommandLine()
     .withParameters("l")
     .withParameters("l")