Skip to content

Commit 3e6ec1f

Browse files
committed
Added log manifests bumped to final summary
1 parent db5bcf5 commit 3e6ec1f

File tree

10 files changed

+80
-70
lines changed

10 files changed

+80
-70
lines changed

brave-omnibox/utils/bump.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ else MANIFEST_PATHS=("$chromium_manifest_path" "$ff_manifest_path") ; fi
3434
if (( ${#MANIFEST_PATHS[@]} > 1 )) ; then manifest_label="manifests"
3535
else manifest_label="${MANIFEST_PATHS[0]}" ; fi
3636
echo -e "${BY}\nBumping version in ${manifest_label}...${NC}\n"
37-
bumped_cnt=0
37+
bumped_manifests=() # for final summary
3838
TODAY=$(date +'%Y.%-m.%-d') # YYYY.M.D format
3939
new_versions=() # for dynamic commit msg
4040
for 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

7272
done
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)
7676
if [[ "$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
9090
fi
9191

92-
# FINAL log
92+
# Final SUMMARY log
9393
git_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

chatgpt-auto-continue/utils/bump/extension-manifests.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ else MANIFEST_PATHS=("$chromium_manifest_path" "$ff_manifest_path") ; fi
3434
if (( ${#MANIFEST_PATHS[@]} > 1 )) ; then manifest_label="manifests"
3535
else manifest_label="${MANIFEST_PATHS[0]}" ; fi
3636
echo -e "${BY}\nBumping version in ${manifest_label}...${NC}\n"
37-
bumped_cnt=0
37+
bumped_manifests=() # for final summary
3838
TODAY=$(date +'%Y.%-m.%-d') # YYYY.M.D format
3939
new_versions=() # for dynamic commit msg
4040
for 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

7272
done
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)
7676
if [[ "$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
9090
fi
9191

92-
# FINAL log
92+
# Final SUMMARY log
9393
git_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

chatgpt-infinity/utils/bump/extension-manifests.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ else MANIFEST_PATHS=("$chromium_manifest_path" "$ff_manifest_path") ; fi
3434
if (( ${#MANIFEST_PATHS[@]} > 1 )) ; then manifest_label="manifests"
3535
else manifest_label="${MANIFEST_PATHS[0]}" ; fi
3636
echo -e "${BY}\nBumping version in ${manifest_label}...${NC}\n"
37-
bumped_cnt=0
37+
bumped_manifests=() # for final summary
3838
TODAY=$(date +'%Y.%-m.%-d') # YYYY.M.D format
3939
new_versions=() # for dynamic commit msg
4040
for 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

7272
done
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)
7676
if [[ "$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
9090
fi
9191

92-
# FINAL log
92+
# Final SUMMARY log
9393
git_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

chatgpt-omnibox/utils/bump.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ else MANIFEST_PATHS=("$chromium_manifest_path" "$ff_manifest_path") ; fi
3434
if (( ${#MANIFEST_PATHS[@]} > 1 )) ; then manifest_label="manifests"
3535
else manifest_label="${MANIFEST_PATHS[0]}" ; fi
3636
echo -e "${BY}\nBumping version in ${manifest_label}...${NC}\n"
37-
bumped_cnt=0
37+
bumped_manifests=() # for final summary
3838
TODAY=$(date +'%Y.%-m.%-d') # YYYY.M.D format
3939
new_versions=() # for dynamic commit msg
4040
for 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

7272
done
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)
7676
if [[ "$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
9090
fi
9191

92-
# FINAL log
92+
# Final SUMMARY log
9393
git_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

chatgpt-widescreen/utils/bump/extension-manifests.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ else MANIFEST_PATHS=("$chromium_manifest_path" "$ff_manifest_path") ; fi
3434
if (( ${#MANIFEST_PATHS[@]} > 1 )) ; then manifest_label="manifests"
3535
else manifest_label="${MANIFEST_PATHS[0]}" ; fi
3636
echo -e "${BY}\nBumping version in ${manifest_label}...${NC}\n"
37-
bumped_cnt=0
37+
bumped_manifests=() # for final summary
3838
TODAY=$(date +'%Y.%-m.%-d') # YYYY.M.D format
3939
new_versions=() # for dynamic commit msg
4040
for 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

7272
done
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)
7676
if [[ "$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
9090
fi
9191

92-
# FINAL log
92+
# Final SUMMARY log
9393
git_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

deepseek-omnibox/utils/bump.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ else MANIFEST_PATHS=("$chromium_manifest_path" "$ff_manifest_path") ; fi
3434
if (( ${#MANIFEST_PATHS[@]} > 1 )) ; then manifest_label="manifests"
3535
else manifest_label="${MANIFEST_PATHS[0]}" ; fi
3636
echo -e "${BY}\nBumping version in ${manifest_label}...${NC}\n"
37-
bumped_cnt=0
37+
bumped_manifests=() # for final summary
3838
TODAY=$(date +'%Y.%-m.%-d') # YYYY.M.D format
3939
new_versions=() # for dynamic commit msg
4040
for 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

7272
done
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)
7676
if [[ "$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
9090
fi
9191

92-
# FINAL log
92+
# Final SUMMARY log
9393
git_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

perplexity-omnibox/utils/bump.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ MANIFEST_PATH="chromium/extension/manifest.json"
2525
echo -e "${BY}\nBumping version in ${MANIFEST_PATH}...${NC}\n"
2626

2727
# Init BUMP vars
28-
bumped_cnt=0
28+
bumped_manifests=() # for final summary
2929
TODAY=$(date +'%Y.%-m.%-d') # YYYY.M.D format
3030

3131
# Check LATEST COMMIT for extension changes
@@ -50,13 +50,13 @@ else new_ver="$TODAY" ; fi
5050
# BUMP old version
5151
sed -i "s/\"version\": \"$old_ver\"/\"version\": \"$new_ver\"/" "$MANIFEST_PATH"
5252
echo -e "Updated: ${BW}v${old_ver}${NC}${BG}v${new_ver}${NC}\n"
53-
((bumped_cnt++))
54-
if (( $bumped_cnt == 0 )) ; then echo -e "${BW}Completed. No manifests bumped.${NC}" ; exit 0 ; fi
53+
bumped_manifests+=("$platform_manifest_path/manifest.json")
54+
if (( ${#bumped_manifests[@]} == 0 )) ; then echo -e "${BW}Completed. No manifests bumped.${NC}" ; exit 0 ; fi
5555

5656
# ADD/COMMIT/PUSH bump(s)
5757
if [[ "$no_commit" != true ]] ; then
58-
plural_suffix=$((( $bumped_cnt > 1 )) && echo "s")
59-
echo -e "${BG}${bumped_cnt} manifest${plural_suffix} bumped!\n${NC}"
58+
plural_suffix=$((( ${#bumped_manifests[@]} > 1 )) && echo "s")
59+
echo -e "${BG}${#bumped_manifests[@]} manifest${plural_suffix} bumped!\n${NC}"
6060
echo -e "${BY}Committing bump${plural_suffix} to Git...\n${NC}"
6161
COMMIT_MSG="Bumped \`version\`"
6262
unique_versions=($(printf "%s\n" "${new_versions[@]}" | sort -u))
@@ -70,7 +70,8 @@ if [[ "$no_commit" != true ]] ; then
7070
fi
7171
fi
7272

73-
# FINAL log
73+
# Final SUMMARY log
7474
git_action="updated"$( [[ "$no_commit" != true ]] && echo -n "/committed" )$(
7575
[[ "$no_push" != true ]] && echo -n "/pushed" )
76-
echo -e "\n${BG}Success! ${bumped_cnt} manifest${plural_suffix} ${git_action} to GitHub${NC}"
76+
echo -e "\n${BG}Success! ${#bumped_manifests[@]} manifest${plural_suffix} ${git_action} to GitHub${NC}"
77+
for manifest in "${bumped_manifests[@]}" ; do echo -e " ± $manifest" ; done # log manifests bumped

phind-omnibox/utils/bump.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ else MANIFEST_PATHS=("$chromium_manifest_path" "$ff_manifest_path") ; fi
3434
if (( ${#MANIFEST_PATHS[@]} > 1 )) ; then manifest_label="manifests"
3535
else manifest_label="${MANIFEST_PATHS[0]}" ; fi
3636
echo -e "${BY}\nBumping version in ${manifest_label}...${NC}\n"
37-
bumped_cnt=0
37+
bumped_manifests=() # for final summary
3838
TODAY=$(date +'%Y.%-m.%-d') # YYYY.M.D format
3939
new_versions=() # for dynamic commit msg
4040
for 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

7272
done
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)
7676
if [[ "$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
9090
fi
9191

92-
# FINAL log
92+
# Final SUMMARY log
9393
git_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

utils/bump/extension-manifests.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ for project_name in "${SORTED_PROJECTS[@]}" ; do echo "$project_name" ; done
4242
echo # line break
4343

4444
# Iterate thru PROJECTS
45-
bumped_cnt=0
45+
bumped_manifests=() # for final summary
4646
TODAY=$(date +'%Y.%-m.%-d') # YYYY.M.D format
4747
new_versions=() # for dynamic commit msg
4848
for project_name in "${SORTED_PROJECTS[@]}" ; do
@@ -80,16 +80,16 @@ for project_name in "${SORTED_PROJECTS[@]}" ; do
8080
# Bump old version
8181
sed -i "s/\"$old_ver\"/\"$new_ver\"/" "$manifest_path"
8282
echo -e "Updated: ${BW}v${old_ver}${NC}${BG}v${new_ver}${NC}\n"
83-
((bumped_cnt++))
83+
bumped_manifests+=("$platform_manifest_path/manifest.json")
8484

8585
done
8686
done
87-
if (( $bumped_cnt == 0 )) ; then echo -e "${BW}Completed. No manifests bumped.${NC}" ; exit 0 ; fi
87+
if (( ${#bumped_manifests[@]} == 0 )) ; then echo -e "${BW}Completed. No manifests bumped.${NC}" ; exit 0 ; fi
8888

8989
# ADD/COMMIT/PUSH bump(s)
9090
if [[ "$no_commit" != true ]] ; then
91-
plural_suffix=$((( $bumped_cnt > 1 )) && echo "s")
92-
echo -e "${BG}${bumped_cnt} manifest${plural_suffix} bumped!\n${NC}"
91+
plural_suffix=$((( ${#bumped_manifests[@]} > 1 )) && echo "s")
92+
echo -e "${BG}${#bumped_manifests[@]} manifest${plural_suffix} bumped!\n${NC}"
9393
echo -e "${BY}Committing bump${plural_suffix} to Git...\n${NC}"
9494
COMMIT_MSG="Bumped \`version\`"
9595
unique_versions=($(printf "%s\n" "${new_versions[@]}" | sort -u))
@@ -103,7 +103,8 @@ if [[ "$no_commit" != true ]] ; then
103103
fi
104104
fi
105105

106-
# FINAL log
106+
# Final SUMMARY log
107107
git_action="updated"$( [[ "$no_commit" != true ]] && echo -n "/committed" )$(
108108
[[ "$no_push" != true ]] && echo -n "/pushed" )
109-
echo -e "\n${BG}Success! ${bumped_cnt} manifest${plural_suffix} ${git_action} to GitHub${NC}"
109+
echo -e "\n${BG}Success! ${#bumped_manifests[@]} manifest${plural_suffix} ${git_action} to GitHub${NC}"
110+
for manifest in "${bumped_manifests[@]}" ; do echo -e " ± $manifest" ; done # log manifests bumped

0 commit comments

Comments
 (0)