Skip to content

Commit

Permalink
fix: unix separator replace
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban committed Nov 5, 2024
1 parent daaee68 commit 044a6ed
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 044a6ed

Please sign in to comment.