10000 [Kokoro] Update version check (#1387) · hrodriguezv/java-docs-samples@16387e3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 16387e3

Browse files
authored
[Kokoro] Update version check (GoogleCloudPlatform#1387)
* Update version check * escape variables
1 parent 742c364 commit 16387e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.kokoro/tests/diff_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ for file in **/pom.xml; do
6060
VERSION=$(grep -oP '(?<=<maven.compiler.target>).*?(?=</maven.compiler.target>)' pom.xml)
6161

6262
# Check for changes to the current folder
63-
if [ "$CHANGED" -eq 1 ] && [ "$PARENT" -eq 0 ] && [ ",$JAVA_VERSIONS," = *",$VERSION,"* ]; then
63+
if [ "$CHANGED" -eq 1 ] && [ "$PARENT" -eq 0 ] && [[ "$JAVA_VERSION" = *"$VERSION"* ]]; then
6464
echo "------------------------------------------------------------"
6565
echo "- testing $file"
6666
echo "------------------------------------------------------------"

.kokoro/tests/run_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ for file in **/pom.xml; do
5555
VERSION=$(grep -oP '(?<=<maven.compiler.target>).*?(?=</maven.compiler.target>)' pom.xml)
5656

5757
# Check for changes to the current folder
58-
if [ "$PARENT" -eq 0 ] && [ ",$JAVA_VERSIONS," = *",$VERSION,"* ]; then
58+
if [ "$PARENT" -eq 0 ] && [[ "$JAVA_VERSION" = *"$VERSION"* ]]; then
5959
echo "------------------------------------------------------------"
6060
echo "- testing $file"
6161
echo "------------------------------------------------------------"

0 commit comments

Comments
 (0)
0