-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bootstrap headers not working (bare centeos) #324
Comments
Hmm, I can't reproduce the problem yet. I've uninstalled kscript and ran your script, which works fine: It installs kscript via sdkman and runs the script afterwards. The install procedure is pulled from https://raw.githubusercontent.com/holgerbrandl/kscript/master/misc/boostrap_header.sh so maybe this fails in your environment? |
Same problem here
System info
install failed After install Also not only kscript, java, kotlin and gradle also can't found And it's the same problem with run : https://raw.githubusercontent.com/holgerbrandl/kscript/master/misc/boostrap_header.sh When manually run |
Could it be that $HOME is not defined? This may cause such kind of confusion, see https://git.io/fpF1K |
I am sure
I don't know why need execute |
I tested it today on a clean MacBook install and there it doesn't work
closing the terminal and rerun it gives:
|
It seems that the bootstrap header is not correct. Currently with
it can't find kscript because it has not sourced the init-script from SDK. I think |
I saw the log that I pasted, It has sourced the sdk script(auto executed by bootstrap script):
But also error with can't find My bootstrap header is:
It seems that there is no differences between us And If I manually source the init script by myself, then it can find kscript
Very strange😅 |
I fixed it by change the bootstrap header to next:
|
If I execute the Ref: https://stackoverflow.com/questions/16011245/source-files-in-a-bash-script test.kts' content:
|
However, it is still broken, as most users won't use/know this workaround. My bash skills are unfortunately also limited. |
I advice change the bootstrapheader to next:
Ref: https://stackoverflow.com/questions/10520605/bashs-source-command-not-working-with-a-file-curld-from-internet |
Thanks for the fix. |
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
the script
The text was updated successfully, but these errors were encountered: