-
Notifications
You must be signed in to change notification settings - Fork 125
Closed
Description
When I run a simple script with the bootstrap headers I get the folloing error:
./test.kts: line 6: exec: kscript: not found
I created a reproducable in docker
FROM centos
RUN yum install unzip -y
RUN yum install zip -y
WORKDIR /project
COPY ./test.kts /project
RUN chmod +x test.kts
RUN ./test.kts
the script
#!/bin/bash
//usr/bin/env echo '
/**** BOOTSTRAP kscript ****\'>/dev/null
command -v kscript >/dev/null 2>&1 || curl -L "https://git.io/fpF1K" | bash 1>&2
exec kscript $0 "$@"
\*** IMPORTANT: Any code including imports and annotations must come after this line ***/
println("Hello from Kotlin!")
for (arg in args) {
println("arg: $arg")
}
Metadata
Metadata
Assignees
Labels
No labels