File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ echo -e "${BY}\nBumping version in ${MANIFEST_PATH}...${NC}\n"
20
20
bumped_cnt=0
21
21
TODAY=$( date +' %Y.%-m.%-d' ) # YYYY.M.D format
22
22
23
- # Check latest commit for extension changes
23
+ # Check LATEST COMMIT for extension changes
24
24
chromium_manifest_path=$( dirname " $MANIFEST_PATH " | sed ' s|^\./||' )
25
25
echo " Checking last commit details for $chromium_manifest_path ..."
26
26
latest_platform_commit_msg=$( git log -1 --format=%s -- " $chromium_manifest_path " )
@@ -29,7 +29,7 @@ if [[ $latest_platform_commit_msg == bump*(version|manifest)* ]] ; then
29
29
30
30
echo " Bumping version in Chromium manifest..."
31
31
32
- # Determine old/new versions
32
+ # Determine OLD/NEW versions
33
33
old_ver=$( sed -n ' s/.*"version": *"\([0-9.]*\)".*/\1/p' " $MANIFEST_PATH " )
34
34
if [[ $old_ver == " $TODAY " ]] ; then
35
35
new_ver=" $TODAY .1"
@@ -38,12 +38,12 @@ elif [[ $old_ver == "$TODAY."* ]] ; then
38
38
new_ver=" $TODAY .$(( LAST_NUMBER + 1 )) "
39
39
else new_ver=" $TODAY " ; fi
40
40
41
- # Bump old version
41
+ # BUMP old version
42
42
sed -i " s/\" version\" : \" $old_ver \" /\" version\" : \" $new_ver \" /" " $MANIFEST_PATH "
43
43
echo -e " Updated: ${BW} v${old_ver}${NC} → ${BG} v${new_ver}${NC} \n"
44
44
(( bumped_cnt++ ))
45
45
46
- # COMMIT/PUSH bump(s)
46
+ # COMMIT/PUSH bump
47
47
if (( $bumped_cnt == 0 )) ; then echo -e " ${BW} Completed. No manifests bumped.${NC} "
48
48
else
49
49
echo -e " ${BY} Committing bump to Git...${NC} "
You can’t perform that action at this time.
0 commit comments