Update run-java-in-container.sh

This commit is contained in:
George Adams 2024-04-22 11:53:15 +02:00 committed by GitHub
parent ec3b541939
commit 561aff1e3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ WORKDIR /container
EOD EOD
# if testDir contains dotted-environment-variables we need to add an environment variable to the docker run command # if testDir contains dotted-environment-variables we need to add an environment variable to the docker run command
if [ $testDir == *"dotted-environment-variables"* ]; then if [[ "$testDir" == *"dotted-environment-variables"* ]]; then
docker run --rm -e "variable.with.a.dot=a.dotted.value" "$newImage" java -cp . container docker run --rm -e "variable.with.a.dot=a.dotted.value" "$newImage" java -cp . container
else else
docker run --rm "$newImage" java -cp . container docker run --rm "$newImage" java -cp . container