Kscript-Tools icon indicating copy to clipboard operation
Kscript-Tools copied to clipboard

Tools for Kotlin/Kscript to easy run shell command in kotlin code

Results 3 Kscript-Tools issues
Sort by recently updated
recently updated
newest added

when i run the command in my gradle project. it says no directory found

Could you please clarify what I'm doing wrong? ``` #!/usr/local/bin/kscript @file:DependsOn("com.sealwu:kscript-tools:1.0.21") "date".evalBash(true) ``` throws ``` [kscript] [ERROR] Compilation of scriplet failed: [kscript] [ERROR] Command : 'bash -c /Users/m/.sdkman/candidates/kotlin/1.7.21/bin/kotlinc -classpath '/Users/m/.m2/repository/com/sealwu/kscript-tools/1.0.21/kscript-tools-1.0.21.jar:/Users/m/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.5.31/kotlin-stdlib-jdk8-1.5.31.jar:/Users/m/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib/1.5.31/kotlin-stdlib-1.5.31.jar:/Users/m/.m2/repository/org/jetbrains/annotations/13.0/annotations-13.0.jar:/Users/m/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-common/1.5.31/kotlin-stdlib-common-1.5.31.jar:/Users/m/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.5.31/kotlin-stdlib-jdk7-1.5.31.jar'...

good first issue

The CommandLineTool.kt was previously hardcoding /bin/bash, which is not available on Android. This change modifies the `runCommand` function to dynamically check the operating system. If the OS is Android, it...