From 177a554f321e683d14d303b9212e55cb4ed445c9 Mon Sep 17 00:00:00 2001 From: kudo-sync-bot Date: Thu, 12 Dec 2024 01:53:29 -0800 Subject: [PATCH] =?UTF-8?q?Replaced=20`manifest=5Flabel`=20w/=20`plural=5F?= =?UTF-8?q?suffix`=20for=20less=20echo=20code=20=E2=86=9E=20[auto-sync=20f?= =?UTF-8?q?rom=20https://github.com/adamlui/ai-web-extensions]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/bump.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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