@@ -34,7 +34,7 @@ else MANIFEST_PATHS=("$chromium_manifest_path" "$ff_manifest_path") ; fi
3434if (( ${# MANIFEST_PATHS[@]} > 1 )) ; then manifest_label=" manifests"
3535else manifest_label=" ${MANIFEST_PATHS[0]} " ; fi
3636echo -e " ${BY} \nBumping version in ${manifest_label} ...${NC} \n"
37- bumped_cnt=0
37+ bumped_manifests=() # for final summary
3838TODAY=$( date +' %Y.%-m.%-d' ) # YYYY.M.D format
3939new_versions=() # for dynamic commit msg
4040for manifest_path in " ${MANIFEST_PATHS[@]} " ; do
@@ -67,15 +67,15 @@ for manifest_path in "${MANIFEST_PATHS[@]}" ; do
6767 # Bump old version
6868 sed -i " s/\" $old_ver \" /\" $new_ver \" /" " $manifest_path "
6969 echo -e " Updated: ${BW} v${old_ver}${NC} → ${BG} v${new_ver}${NC} \n"
70- (( bumped_cnt ++ ) )
70+ bumped_manifests+=( " $platform_manifest_path /manifest.json " )
7171
7272done
73- if (( $bumped_cnt == 0 )) ; then echo -e " ${BW} Completed. No manifests bumped.${NC} " ; exit 0 ; fi
73+ if (( ${ # bumped_manifests[@]} == 0 )) ; then echo -e " ${BW} Completed. No manifests bumped.${NC} " ; exit 0 ; fi
7474
7575# ADD/COMMIT/PUSH bump(s)
7676if [[ " $no_commit " != true ]] ; then
77- plural_suffix=$(( ( $bumped_cnt > 1 )) && echo " s" )
78- echo -e " ${BG}${bumped_cnt } manifest${plural_suffix} bumped!\n${NC} "
77+ plural_suffix=$(( ( ${ # bumped_manifests[@]} > 1 )) && echo " s" )
78+ echo -e " ${BG}${# bumped_manifests[@] } manifest${plural_suffix} bumped!\n${NC} "
7979 echo -e " ${BY} Committing bump${plural_suffix} to Git...\n${NC} "
8080 COMMIT_MSG=" Bumped \` version\` "
8181 unique_versions=($( printf " %s\n" " ${new_versions[@]} " | sort -u) )
@@ -89,7 +89,8 @@ if [[ "$no_commit" != true ]] ; then
8989 fi
9090fi
9191
92- # FINAL log
92+ # Final SUMMARY log
9393git_action=" updated" $( [[ " $no_commit " != true ]] && echo -n " /committed" ) $(
9494 [[ " $no_push " != true ]] && echo -n " /pushed" )
95- echo -e " \n${BG} Success! ${bumped_cnt} manifest${plural_suffix} ${git_action} to GitHub${NC} "
95+ echo -e " \n${BG} Success! ${# bumped_manifests[@]} manifest${plural_suffix} ${git_action} to GitHub${NC} "
96+ for manifest in " ${bumped_manifests[@]} " ; do echo -e " ± $manifest " ; done # log manifests bumped
0 commit comments