File tree 2 files changed +2
-1
lines changed
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ if [ "${TRAVIS_JDK_VERSION}" == "oraclejdk7" ]; then
14
14
SITE_VERSION=$( mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -Ev ' (^\[|\w+:)' )
15
15
echo " Used the maven-help-plugin to determine that the version is $SITE_VERSION "
16
16
if [ " $SITE_VERSION " == " " ]; then
17
+ echo " Could not determine the version, so we're exiting."
17
18
exit 1
18
19
fi
19
20
if [ " ${SITE_VERSION##* -} " != " SNAPSHOT" ]; then
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ RELEASED_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate
10
10
if [ " ${RELEASED_VERSION##* -} " != " SNAPSHOT" ]; then
11
11
echo " Changing version to $RELEASED_VERSION in README files"
12
12
# Get list of directories for which README.md must be updated
13
- module_folders=($( find . -maxdepth 2 -name ' gcloud-java* ' - type d) .)
13
+ module_folders=($( find . -maxdepth 2 \( -regex " ./ gcloud-java-[a-z]* " -o -regex " ./gcloud-java-contrib/gcloud-java-[a-z]* " \) - type d) . ./gcloud-java )
14
14
for item in ${module_folders[*]}
15
15
do
16
16
sed -ri " s/<version>[0-9]+\.[0-9]+\.[0-9]+<\/version>/<version>${RELEASED_VERSION} <\/version>/g" ${item} /README.md
You can’t perform that action at this time.
0 commit comments