Skip to content

Commit

Permalink
feat(octopus/tasks): quote params which might contain blanks
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Kesselring authored and Marcel Kesselring committed Aug 7, 2023
1 parent 559a635 commit be27ab4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ open class PromoteReleaseTask : DefaultTask() {
"promote-release",
"--server=$octopusUrlValue",
"--apiKey=$apiKeyValue",
"--project=$projectNameValue",
"--project=\"$projectNameValue\"",
"--from=$fromValue",
"--to=$toValue"
).joinToString(" ").let { shell(it, logger) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ open class UploadBuildInformationTask : DefaultTask() {
"--file",
buildInformation?.absolutePath ?: error("couldn't find build-information.json"),
"--package-id",
packageName.get(),
"\"${packageName.get()}\"",
"--version=${version.get()}",
overwriteMode?.let { "--overwrite-mode=$it" }
).filterNotNull().joinToString(" ").let { shell(it, logger) }
Expand Down

0 comments on commit be27ab4

Please sign in to comment.