Merge pull request #93082 from cfhammill/cfh/fix-singularity-shell-copy
singularity-tools: Check for /bin/sh existence before symlink
This commit is contained in:
commit
6740a5998b
1 changed files with 3 additions and 1 deletions
|
@ -86,7 +86,9 @@ rec {
|
|||
done
|
||||
|
||||
# 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
|
||||
ln -s ${runScriptFile} .singularity.d/runscript
|
||||
|
||||
|
|
Loading…
Reference in a new issue