Skip to content

Commit

Permalink
Merge pull request #24 from unoplatform/dev/jela/empty-version
Browse files Browse the repository at this point in the history
fix: unix separator replace
  • Loading branch information
jeromelaban authored Nov 5, 2024
2 parents 6e115de + 044a6ed commit f2fea1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NvGet.Tools.Shared/Arguments/ConsoleArgsContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ async Task<IEnumerable<UpdateResult>> LoadFromStreamAsync()
}
else
{
var alignedInputPathOrUrl = inputPathOrUrl.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar);
var alignedInputPathOrUrl = inputPathOrUrl.Replace(Path.DirectorySeparatorChar == '/' ? '\\' : '/', Path.DirectorySeparatorChar);

using(var jsonTextReader = new JsonTextReader(File.OpenText(alignedInputPathOrUrl)))
{
Expand Down

0 comments on commit f2fea1d

Please sign in to comment.