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:
commit
6b81768297
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue