From 75f5f11f5556700fffefa8f5bba3cfdd6edf38bd Mon Sep 17 00:00:00 2001 From: kudo-sync-bot Date: Sun, 8 Dec 2024 23:40:52 -0800 Subject: [PATCH] =?UTF-8?q?Condensed=20bumped=20echo=20routine=20=E2=86=9E?= =?UTF-8?q?=20[auto-sync=20from=20https://github.com/adamlui/ai-web-extens?= =?UTF-8?q?ions]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/bump.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/utils/bump.sh b/utils/bump.sh index e5097a7..13409a9 100644 --- a/utils/bump.sh +++ b/utils/bump.sh @@ -48,12 +48,9 @@ for manifest in "${MANIFEST_PATHS[@]}" ; do # Bump old version sed -i "s/\"version\": \"$old_ver\"/\"version\": \"$new_ver\"/" "$manifest" - if [[ ${#MANIFEST_PATHS[@]} -gt 1 ]]; then - echo -e "${manifest}: ${BW}v${old_ver}${NC} → ${BG}v${new_ver}${NC}" - else - echo -e "${BW}v${old_ver}${NC} → ${BG}v${new_ver}${NC}" - fi - ((bumped_cnt++)) + bumped_msg="${BW}v${old_ver}${NC} → ${BG}v${new_ver}${NC}" + if [[ ${#MANIFEST_PATHS[@]} -gt 1 ]] ; then bumped_msg="${manifest}: ${bumped_msg}" ; fi + echo -e "$bumped_msg" ; ((bumped_cnt++)) done # Define COMMIT MSG