From 28e889c0455be2d2984f197bc4cca68feef29b42 Mon Sep 17 00:00:00 2001 From: sitob80 Date: Wed, 20 Jun 2018 10:22:47 +0200 Subject: [PATCH] Fix wrong handling of java and slave options in powershell script --- .../yad/launcher/DockerComputerJNLPLauncher/init.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yet-another-docker-plugin/src/main/resources/com/github/kostyasha/yad/launcher/DockerComputerJNLPLauncher/init.ps1 b/yet-another-docker-plugin/src/main/resources/com/github/kostyasha/yad/launcher/DockerComputerJNLPLauncher/init.ps1 index 732d0aae..6f42fb78 100644 --- a/yet-another-docker-plugin/src/main/resources/com/github/kostyasha/yad/launcher/DockerComputerJNLPLauncher/init.ps1 +++ b/yet-another-docker-plugin/src/main/resources/com/github/kostyasha/yad/launcher/DockerComputerJNLPLauncher/init.ps1 @@ -39,7 +39,7 @@ Write-Output "###################################" $RUN_CMD="java" -if (!$JAVA_OPTS) { +if ($JAVA_OPTS) { $RUN_CMD="$RUN_CMD $JAVA_OPTS" } @@ -53,7 +53,7 @@ if ($NO_CERTIFICATE_CHECK -eq "true") { $RUN_CMD="$RUN_CMD -noCertificateCheck" } -if (!$SLAVE_OPTS) { +if ($SLAVE_OPTS) { $RUN_CMD="$RUN_CMD $SLAVE_OPTS" }