Skip to content

Commit

Permalink
Simplified UNIQUE_VERSIONS deduplication ↞ [auto-sync from `adamlui…
Browse files Browse the repository at this point in the history
…/ai-apps`]
  • Loading branch information
kudo-sync-bot committed Oct 16, 2024
1 parent e69229d commit df2758d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/bump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ done

# Define commit msg
COMMIT_MSG="Bumped \`version\`"
UNIQUE_VERSIONS=($(echo "${NEW_VERSIONS[@]}" | tr ' ' '\n' | sort -u | tr '\n' ' '))
UNIQUE_VERSIONS=($(printf "%s\n" "${NEW_VERSIONS[@]}" | sort -u))
if [[ ${#UNIQUE_VERSIONS[@]} -eq 1 ]] ; then
COMMIT_MSG+=" to \`${UNIQUE_VERSIONS[0]}\`" ; fi

Expand Down

0 comments on commit df2758d

Please sign in to comment.