kscript icon indicating copy to clipboard operation
kscript copied to clipboard

[kscript] [ERROR] Unsupported OS: linux

Open christianitis opened this issue 2 years ago • 2 comments

Freshly installed SDKMAN, kotlin, and kscript; exactly according to the instructions provided in the README. christian@openPEPE:~> kscript [kscript] [ERROR] Unsupported OS: linux Using openSUSE Tumbleweed x86_64. OpenJDK/JRE 17.0.3+7-suse.

christianitis avatar Jul 12 '22 09:07 christianitis

Thanks for the report! The issue is already fixed in the master branch.

@holgerbrandl - can you please release the new version from the master? Unfortunately, I have no capacity for getting into the release process now. The release of the master branch will also fix https://github.com/holgerbrandl/kscript/issues/361

aartiPl avatar Jul 12 '22 11:07 aartiPl

@christianitis - as a workaround you can edit kscript shell script:

current line 49: eval "exec $("${KOTLIN_BIN}kotlin" -classpath "${JAR_PATH}" kscript.app.KscriptKt "$OSTYPE" "$@")" modify it into: eval "exec $("${KOTLIN_BIN}kotlin" -classpath "${JAR_PATH}" kscript.app.KscriptKt "linux-gnu" "$@")"

$OSTYPE --> linux-gnu

aartiPl avatar Jul 12 '22 17:07 aartiPl

Should be fixed in kscript 4.1.0, please recheck and reopen the ticket if needed.

aartiPl avatar Aug 26 '22 14:08 aartiPl