File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 15
15
/* .prom
16
16
/.metrics. * . * .prom
17
17
/.metrics. * . * .prom.unique
18
+ /.assets-branch
19
+ /.metrics. * .added
20
+ /.metrics. * .removed
Original file line number Diff line number Diff line change @@ -11,14 +11,18 @@ function generate_add_removed() {
11
11
old_version=" $3 "
12
12
new_version=" $4 "
13
13
14
+ if [ ! -e " $old_version " ] ; then
15
+ touch " $old_version "
16
+ fi
17
+
14
18
comm -23 " $old_version " " $new_version " > " .metrics.${type} .${pg_version} .removed"
15
19
comm -13 " $old_version " " $new_version " > " .metrics.${type} .${pg_version} .added"
16
20
}
17
21
18
22
for raw_prom in $( echo .* .prom) ; do
19
23
# Get the type and version
20
- type=$( cut -d' .' -f3)
21
- pg_version=$( cut -d' .' -f4)
24
+ type=$( echo " $raw_prom " | cut -d' .' -f3)
25
+ pg_version=$( echo " $raw_prom " | cut -d' .' -f4- | sed ' s/\.prom$//g ' )
22
26
23
27
unique_file=" ${raw_prom} .unique"
24
28
old_unique_file=" $old_src /$unique_file "
You can’t perform that action at this time.
0 commit comments