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:
Anderson Torres 2020-09-19 00:42:29 -03:00 committed by GitHub
commit 6740a5998b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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