singularity-tools: Only copy into /bin what is specified in contents
This commit is contained in:
parent
d26f8b5e00
commit
9cf47fb1c8
|
@ -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…
Reference in a new issue