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
|
mkdir -p bin nix/store
|
||||||
for f in $(cat $layerClosure) ; do
|
for f in $(cat $layerClosure) ; do
|
||||||
cp -ar $f ./$f
|
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
|
if [ ! -e bin/$(basename $f) ] ; then
|
||||||
ln -s $f bin/
|
ln -s $f bin/
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user