Skip to content

Commit

Permalink
[Kokoro] Update version check (#1387)
Browse files Browse the repository at this point in the history
* Update version check

* escape variables
  • Loading branch information
averikitsch authored Apr 18, 2019
1 parent 742c364 commit 16387e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .kokoro/tests/diff_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ for file in **/pom.xml; do
VERSION=$(grep -oP '(?<=<maven.compiler.target>).*?(?=</maven.compiler.target>)' pom.xml)

# Check for changes to the current folder
if [ "$CHANGED" -eq 1 ] && [ "$PARENT" -eq 0 ] && [ ",$JAVA_VERSIONS," = *",$VERSION,"* ]; then
if [ "$CHANGED" -eq 1 ] && [ "$PARENT" -eq 0 ] && [[ "$JAVA_VERSION" = *"$VERSION"* ]]; then
echo "------------------------------------------------------------"
echo "- testing $file"
echo "------------------------------------------------------------"
Expand Down
2 changes: 1 addition & 1 deletion .kokoro/tests/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ for file in **/pom.xml; do
VERSION=$(grep -oP '(?<=<maven.compiler.target>).*?(?=</maven.compiler.target>)' pom.xml)

# Check for changes to the current folder
if [ "$PARENT" -eq 0 ] && [ ",$JAVA_VERSIONS," = *",$VERSION,"* ]; then
if [ "$PARENT" -eq 0 ] && [[ "$JAVA_VERSION" = *"$VERSION"* ]]; then
echo "------------------------------------------------------------"
echo "- testing $file"
echo "------------------------------------------------------------"
Expand Down

0 comments on commit 16387e3

Please sign in to comment.