mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 10:53:11 +00:00
dockerTools: fix difference between base files and layer files
This commit is contained in:
parent
4d200538c2
commit
44d651485a
@ -295,6 +295,7 @@ EOF
|
|||||||
|
|
||||||
echo Adding layer
|
echo Adding layer
|
||||||
tar -tf temp/layer.tar >> baseFiles
|
tar -tf temp/layer.tar >> baseFiles
|
||||||
|
sed 's/^\.//' -i baseFiles
|
||||||
comm <(sort -n baseFiles|uniq) <(sort -n layerFiles|uniq|grep -v ${layer}) -1 -3 > newFiles
|
comm <(sort -n baseFiles|uniq) <(sort -n layerFiles|uniq|grep -v ${layer}) -1 -3 > newFiles
|
||||||
tar -rpf temp/layer.tar --no-recursion --files-from newFiles 2>/dev/null || true
|
tar -rpf temp/layer.tar --no-recursion --files-from newFiles 2>/dev/null || true
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user