diff --git a/utils/bump.sh b/utils/bump.sh index 1704d4b..728da8b 100644 --- a/utils/bump.sh +++ b/utils/bump.sh @@ -70,9 +70,9 @@ done # COMMIT/PUSH bump(s) if (( $bumped_cnt == 0 )) ; then echo -e "${BW}Completed. No manifests bumped.${NC}" else - manifest_label=$((( $bumped_cnt > 1 )) && echo "manifests" || echo "manifest") - echo -e "\n${BG + bumped_cnt} ${manifest_label} bumped!${NC}" - echo -e "\n${BY}Committing $((( bumped_cnt > 1 )) && echo bumps || echo bump) to Git...${NC}" + plural_suffix=$((( $bumped_cnt > 1 )) && echo "s") + echo -e "\n${BG}${bumped_cnt} manifest${plural_suffix} bumped!${NC}" + echo -e "\n${BY}Committing bump${plural_suffix} to Git...${NC}" # Define commit msg COMMIT_MSG="Bumped \`version\`" @@ -82,5 +82,5 @@ else # Commit/push bump(s) git add ./**/manifest.json && git commit -n -m "$COMMIT_MSG" git push - echo -e "\n${BG}Success! ${bumped_cnt} ${manifest_label} updated/committed/pushed to GitHub${NC}" + echo -e "\n${BG}Success! ${bumped_cnt} manifest${plural_suffix} updated/committed/pushed to GitHub${NC}" fi