Skip to content

Commit

Permalink
Replaced manifest_label w/ plural_suffix for less echo code ↞ [au…
Browse files Browse the repository at this point in the history
  • Loading branch information
kudo-sync-bot committed Dec 12, 2024
1 parent fbfbbd7 commit 177a554
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions utils/bump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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\`"
Expand All @@ -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

0 comments on commit 177a554

Please sign in to comment.