Merge pull request #20674 from lbodor/docker-tools-rsync-pr
dockerTools: rsync contents with -keep-dirlinks
This commit is contained in:
commit
6f36a97b2b
@ -247,7 +247,7 @@ rec {
|
|||||||
echo "Adding contents..."
|
echo "Adding contents..."
|
||||||
for item in $contents; do
|
for item in $contents; do
|
||||||
echo "Adding $item"
|
echo "Adding $item"
|
||||||
rsync -a $item/ layer/
|
rsync -ak $item/ layer/
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
echo "No contents to add to layer."
|
echo "No contents to add to layer."
|
||||||
@ -310,7 +310,7 @@ rec {
|
|||||||
echo "Adding contents..."
|
echo "Adding contents..."
|
||||||
for item in ${toString contents}; do
|
for item in ${toString contents}; do
|
||||||
echo "Adding $item..."
|
echo "Adding $item..."
|
||||||
rsync -a $item/ layer/
|
rsync -ak $item/ layer/
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user