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"
2020bumped_cnt=0
2121TODAY=$( date +' %Y.%-m.%-d' ) # YYYY.M.D format
2222
23- # Check latest commit for extension changes
23+ # Check LATEST COMMIT for extension changes
2424chromium_manifest_path=$( dirname " $MANIFEST_PATH " | sed ' s|^\./||' )
2525echo " Checking last commit details for $chromium_manifest_path ..."
2626latest_platform_commit_msg=$( git log -1 --format=%s -- " $chromium_manifest_path " )
@@ -29,7 +29,7 @@ if [[ $latest_platform_commit_msg == bump*(version|manifest)* ]] ; then
2929
3030echo " Bumping version in Chromium manifest..."
3131
32- # Determine old/new versions
32+ # Determine OLD/NEW versions
3333old_ver=$( sed -n ' s/.*"version": *"\([0-9.]*\)".*/\1/p' " $MANIFEST_PATH " )
3434if [[ $old_ver == " $TODAY " ]] ; then
3535 new_ver=" $TODAY .1"
@@ -38,12 +38,12 @@ elif [[ $old_ver == "$TODAY."* ]] ; then
3838 new_ver=" $TODAY .$(( LAST_NUMBER + 1 )) "
3939else new_ver=" $TODAY " ; fi
4040
41- # Bump old version
41+ # BUMP old version
4242sed -i " s/\" version\" : \" $old_ver \" /\" version\" : \" $new_ver \" /" " $MANIFEST_PATH "
4343echo -e " Updated: ${BW} v${old_ver}${NC} → ${BG} v${new_ver}${NC} \n"
4444(( bumped_cnt++ ))
4545
46- # COMMIT/PUSH bump(s)
46+ # COMMIT/PUSH bump
4747if (( $bumped_cnt == 0 )) ; then echo -e " ${BW} Completed. No manifests bumped.${NC} "
4848else
4949 echo -e " ${BY} Committing bump to Git...${NC} "
You can’t perform that action at this time.
0 commit comments