Skip to content

remove dependency to /bin/sh when using AppRun script - #110

Open
Samueru-sama wants to merge 1 commit into
VHSgunzo:mainfrom
Samueru-sama:patch-5
Open

remove dependency to /bin/sh when using AppRun script#110
Samueru-sama wants to merge 1 commit into
VHSgunzo:mainfrom
Samueru-sama:patch-5

Conversation

@Samueru-sama

Copy link
Copy Markdown
Contributor

This guarantees that the application will run even if /bin/sh is not present on the host.

  • first checks for common shell locations in /bin/sh, /bin/bash, etc

  • finally defaults to using PATH if all of those fail.

Note: It is very important that sharun does not read its .env file when doing this, because otherwise the host shell can inherit env variables from the .env that break.


Tested it working:

image

This can be further extended, for example one can have an AppRun.bash and in that case sharun would look for a bash shell only, same with a AppRun.py where sharun would look for a python executable to run it and so on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant