Skip to content

Commit

Permalink
VCI-904: Fix for 404 error (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
krankenbro authored Aug 1, 2024
1 parent 20126b5 commit b88b0a1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/VirtoCommerce.Build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1261,7 +1261,12 @@ private void CompressExecuteMethod()
string[] ignoredFiles;
if (GlobalModuleIgnoreFileUrl.StartsWith("http"))
{
ignoredFiles = HttpTasks.HttpDownloadString(GlobalModuleIgnoreFileUrl).SplitLineBreaks();
var responseString = HttpTasks.HttpDownloadString(GlobalModuleIgnoreFileUrl);
if (responseString.StartsWith("404:"))
{
responseString = HttpTasks.HttpDownloadString(string.Format(moduleIgnoreUrlTemplate, "dev"));
}
ignoredFiles = responseString.SplitLineBreaks();
}
else
{
Expand Down

0 comments on commit b88b0a1

Please sign in to comment.