Skip to content

Commit

Permalink
fix push to NuGet quoting
Browse files Browse the repository at this point in the history
  • Loading branch information
yazeedobaid authored Nov 1, 2022
1 parent 49a80b6 commit 1ba479c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -443,10 +443,7 @@ let rec nugetPush tries nugetPackage =

try
if not <| String.IsNullOrEmpty apiKey.Value then
let quoteString str =
StringBuilder()
|> StringBuilder.appendQuotedIfNotNull Some str
|> StringBuilder.toText
let quoteString str = sprintf "\"%s\"" str

let args = sprintf "push %s %s -Source %s" (quoteString nugetPackage) (quoteString apiKey.Value) (quoteString nugetSource)

Expand Down

0 comments on commit 1ba479c

Please sign in to comment.