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 51351d8 commit 3f618e1Copy full SHA for 3f618e1
kscript
@@ -29,7 +29,8 @@ if [ "${OSTYPE//[0-9.]/}" == "darwin" ]; then md5sum(){ md5 -r $1; }; fi
29
scriptCheckSum=$(md5sum ${scriptFile} | awk '{ print $1 }')
30
scriptCheckSum=${scriptCheckSum:0:6}
31
32
-jarFile=$(pwd)/.$(basename ${scriptFile} .kts).${scriptCheckSum}.jar
+jarDir=$(dirname ${scriptFile}) # see https://github.com/holgerbrandl/kscript/issues/5
33
+jarFile=${jarDir}/.$(basename ${scriptFile} .kts).${scriptCheckSum}.jar
34
35
36
## capitalize first letter (since this is what kotlin compiler is doing for the wrapper
0 commit comments