Closed samcmill closed 4 years ago
This PR fixes 2 shell related issues.
First, an extra /bin/bash gets appended to the shell entrypoint:
/bin/bash
shell
$ scif shell ref [ref] executing /bin/bash /bin/bash /bin/bash: /bin/bash: cannot execute binary file
This is fixed by checking whether args is defined in activate().
args
activate()
Second, the documentation says If an app doesn’t have an %apprun section, we default to a shell. However, this case is treated as an error:
If an app doesn’t have an %apprun section, we default to a shell.
$ scif run ref ERROR ref does not have a runscript.
This is fixed by converting this message from an error to a debug statement. Also correctly sets the resulting shell as interactive.
Thanks @samcmill ! Should be on pypi now https://pypi.org/project/scif/0.0.79/. I'll need to fix the docs rendering there to be markdown, will go into next release.
This PR fixes 2 shell related issues.
First, an extra
/bin/bash
gets appended to theshell
entrypoint:This is fixed by checking whether
args
is defined inactivate()
.Second, the documentation says
If an app doesn’t have an %apprun section, we default to a shell.
However, this case is treated as an error:This is fixed by converting this message from an error to a debug statement. Also correctly sets the resulting shell as interactive.