We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfe05d5 commit fb59b7fCopy full SHA for fb59b7f
tests/Microsoft.DotNet.Docker.Tests/SdkImageTests.cs
@@ -234,7 +234,16 @@ private IEnumerable<SdkContentFileInfo> GetActualSdkContents(ProductImageData im
234
{
235
dotnetPath = "/usr/share/dotnet";
236
destinationPath = "/sdk";
237
- command = $"find {destinationPath} -type f -o -type l -exec sha512sum {{}} +";
+
238
+ // Alpine has limited find syntax support
239
+ if (imageData.SdkOS.Family == OSFamily.Alpine)
240
+ {
241
+ command = $"find {destinationPath} \\( -type f -o -type l \\) -exec sha512sum {{}} +";
242
+ }
243
+ else
244
245
+ command = $"find {destinationPath} -type f,l -exec sha512sum {{}} +";
246
247
}
248
else
249
0 commit comments