Skip to content

Commit

Permalink
Add tag support for namespaced images
Browse files Browse the repository at this point in the history
  • Loading branch information
thatbakamono authored Aug 17, 2021
1 parent 261d474 commit 2bf6610
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions easyWSL/DistroInstaller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,18 @@ void GetRequestWithHeaderToFile(string url, string token, string type, string fi
if (distroImage.Contains('/'))
{
string[] imageArray = distroImage.Split('/');
tag = "latest";
repository = distroImage;
}

if (imageArray[1].Contains(':'))
{
tag = imageArray[1].Split(':')[1];
repository = distroImage.Split(':')[0];
}
else
{
tag = "latest";
repository = distroImage;
}
}
else
{
string[] imageArray = distroImage.Split(':');
Expand Down

0 comments on commit 2bf6610

Please sign in to comment.