Skip to content

Commit 6ca1f65

Browse files
authored
chore: Fixing some stuff (#8774)
1 parent 352bab7 commit 6ca1f65

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
#!/bin/bash
22

3+
# This script adds the contents of a module's versions.txt to root versions.txt and then deletes it.
4+
# This should be run during addition of a new-module to the monorepo
5+
36
set -e
47

58
GENERATION_DIR=$(dirname -- "$0")
69

7-
rm -f versions.txt
8-
9-
echo "# Format:" >> versions.txt
10-
echo "# module:released-version:current-version" >> versions.txt
11-
1210
module_list=$(find . -mindepth 2 -maxdepth 2 -name pom.xml | sort --dictionary-order |xargs dirname)
1311

1412
for path in $module_list; do
15-
16-
cat ${path}/versions.txt | while read LINE; do
17-
if ! [[ $LINE == *"#"* ]] && [ "$LINE" != "" ]; then
18-
echo $LINE >> versions.txt
19-
fi
20-
done
21-
13+
FILE=${path}/versions.txt
14+
if [ -f ${FILE} ]; then
15+
cat ${path}/versions.txt | while read LINE; do
16+
if ! [[ $LINE == *"#"* ]] && [ "$LINE" != "" ]; then
17+
echo $LINE >> versions.txt
18+
fi
19+
done
20+
fi
21+
rm -f ${FILE}
2222
done
2323

java-kms/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<dependency>
4545
<groupId>com.google.cloud</groupId>
4646
<artifactId>google-cloud-kms-bom</artifactId>
47-
<version>2.8.1-SNAPSHOT</version><!-- {x-version-update:google-cloud-kms-bom:current} -->
47+
<version>2.8.1-SNAPSHOT</version><!-- {x-version-update:google-cloud-kms:current} -->
4848
</dependency>
4949
</dependencies>
5050
</dependencyManagement>

versions.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,3 +587,4 @@ grpc-google-cloud-workflows-v1beta:0.11.0:0.11.1-SNAPSHOT
587587
grpc-google-cloud-workflows-v1:2.5.0:2.5.1-SNAPSHOT
588588
proto-google-cloud-workflows-v1beta:0.11.0:0.11.1-SNAPSHOT
589589
proto-google-cloud-workflows-v1:2.5.0:2.5.1-SNAPSHOT
590+
google-cloud-dns:2.3.0:2.3.1-SNAPSHOT

0 commit comments

Comments
 (0)