We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d65f45 commit f62f058Copy full SHA for f62f058
kscript
@@ -2,6 +2,12 @@
2
3
4
# version tag for backward compatibility with kscript v1.x
5
-KSCRIPT_VERSION=2.0.0
+KSCRIPT_VERSION=2.0.1
6
7
-exec $(kotlin -classpath $(dirname $0)/kscript.jar kscript.app.KscriptKt "$@")
+
8
+## resolve application jar path from script location and convert to windows path when using cygwin
9
+jarPath=$(dirname $0)/kscript.jar
10
+if [[ $(uname) == CYGWIN* ]]; then jarPath=$(cygpath -w ${jarPath}); fi
11
12
+## run it using command substitution to have just the user process once kscript is done
13
+exec $(kotlin -classpath ${jarPath} kscript.app.KscriptKt "$@")
0 commit comments