forked from mirrors/nixpkgs
singularity-tools: Check for /bin/sh existence before symlink
Fixes the case where the user has bashInteractive in the container contents
This commit is contained in:
parent
26291ccf34
commit
8975b7b0e2
|
@ -86,7 +86,9 @@ rec {
|
|||
done
|
||||
|
||||
# Create runScript and link shell
|
||||
if [ ! -e bin/sh ]; then
|
||||
ln -s ${runtimeShell} bin/sh
|
||||
fi
|
||||
mkdir -p .singularity.d
|
||||
ln -s ${runScriptFile} .singularity.d/runscript
|
||||
|
||||
|
|
Loading…
Reference in a new issue