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
|
done
|
||||||
|
|
||||||
# Create runScript and link shell
|
# Create runScript and link shell
|
||||||
ln -s ${runtimeShell} bin/sh
|
if [ ! -e bin/sh ]; then
|
||||||
|
ln -s ${runtimeShell} bin/sh
|
||||||
|
fi
|
||||||
mkdir -p .singularity.d
|
mkdir -p .singularity.d
|
||||||
ln -s ${runScriptFile} .singularity.d/runscript
|
ln -s ${runScriptFile} .singularity.d/runscript
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user