singularity-tools: Only copy into /bin what is specified in contents

This commit is contained in:
Dan Haraj 2017-10-10 14:41:54 -04:00
parent d26f8b5e00
commit 9cf47fb1c8

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