Skip to content

Commit

Permalink
Adds quotes around params
Browse files Browse the repository at this point in the history
  • Loading branch information
yannickpulver committed Jul 8, 2024
1 parent 6aa3e9f commit e7916d1
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,14 @@ class UpdraftPlugin implements Plugin<Project> {
for (String url in urls) {
//Build and execute of the curl command for Updraft upload

println("Curl command --> curl -X PUT -F app=@${file} -F build_type=Gradle ${gitBranch} ${gitUrl} ${gitTags} ${gitCommit} ${whatsNew} ${url}")

new ByteArrayOutputStream().withStream { os ->
def result = project.exec {
executable 'curl'
args '-X', 'PUT',
'-F', "app=@${file}",
'-F', "build_type=Gradle",
'-F', "\"app=@${file}\"",
'-F', "\"build_type=Gradle\"",
gitBranch,
gitUrl,
gitTags,
Expand Down Expand Up @@ -196,7 +198,7 @@ class UpdraftPlugin implements Plugin<Project> {
if (text.isBlank() || text.isEmpty()) {
""
} else {
"-F ${name}=${text} "
"-F \"${name}=${text}\" "
}
}
}

0 comments on commit e7916d1

Please sign in to comment.