Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Fix issue 866 #979

Merged
merged 2 commits into from
May 18, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion NuKeeper.Update/Process/NuGetFileRestoreCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.IO;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
using McMaster.Extensions.CommandLineUtils;
using NuGet.Configuration;
using NuGet.Versioning;
using NuKeeper.Abstractions.Logging;
Expand Down Expand Up @@ -52,9 +53,10 @@ public async Task Invoke(FileInfo file, NuGetSources sources)
return;
}

var fileNameCommandLine = ArgumentEscaper.EscapeAndConcatenate(new[] { file.Name });
var sourcesCommandLine = sources.CommandLine("-Source");

var restoreCommand = $"restore {file.Name} {sourcesCommandLine} -NonInteractive";
var restoreCommand = $"restore {fileNameCommandLine} {sourcesCommandLine} -NonInteractive";

ProcessOutput processOutput;
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Expand Down