Skip to content

Commit

Permalink
Update run-java-in-container.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
gdams authored Apr 22, 2024
1 parent ec3b541 commit 561aff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/tests/run-java-in-container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ WORKDIR /container
EOD

# 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
else
docker run --rm "$newImage" java -cp . container
Expand Down

0 comments on commit 561aff1

Please sign in to comment.