Skip to content

Commit 561aff1

Browse files
authored
Update run-java-in-container.sh
1 parent ec3b541 commit 561aff1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/tests/run-java-in-container.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ WORKDIR /container
5252
EOD
5353

5454
# if testDir contains dotted-environment-variables we need to add an environment variable to the docker run command
55-
if [ $testDir == *"dotted-environment-variables"* ]; then
55+
if [[ "$testDir" == *"dotted-environment-variables"* ]]; then
5656
docker run --rm -e "variable.with.a.dot=a.dotted.value" "$newImage" java -cp . container
5757
else
5858
docker run --rm "$newImage" java -cp . container

0 commit comments

Comments
 (0)