Merge pull request #93082 from cfhammill/cfh/fix-singularity-shell-copy

singularity-tools: Check for /bin/sh existence before symlink
gstqt5
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
1 changed files with 3 additions and 1 deletions

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