3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #30479 from obsidiansystems/singularity-tools

singularity-tools: Only copy into /bin what is specified in contents
This commit is contained in:
Dmitry Kalinkin 2019-01-09 19:39:08 -05:00 committed by GitHub
commit 6b81768297
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,7 +74,10 @@ rec {
mkdir -p bin nix/store
for f in $(cat $layerClosure) ; do
cp -ar $f ./$f
for f in $f/bin/* ; do
done
for c in ${toString contents} ; do
for f in $c/bin/* ; do
if [ ! -e bin/$(basename $f) ] ; then
ln -s $f bin/
fi