Skip to content

Commit

Permalink
Merge pull request #22 from unoplatform/dev/jela/empty-version
Browse files Browse the repository at this point in the history
fix: Support both unix and windows paths for versionOverride
  • Loading branch information
jeromelaban authored Nov 5, 2024
2 parents a72e85b + 70fc83b commit d1f921b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/NvGet.Tools.Shared/Arguments/ConsoleArgsContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ async Task<IEnumerable<UpdateResult>> LoadFromStreamAsync()
}
else
{
using(var jsonTextReader = new JsonTextReader(File.OpenText(inputPathOrUrl)))
var alignedInputPathOrUrl = inputPathOrUrl.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar);

using(var jsonTextReader = new JsonTextReader(File.OpenText(alignedInputPathOrUrl)))
{
return jsonSerializer.Deserialize<IEnumerable<UpdateResult>>(jsonTextReader);
}
Expand Down

0 comments on commit d1f921b

Please sign in to comment.