Skip to content

Commit

Permalink
[patch] Fix display of existing catalog version (#630)
Browse files Browse the repository at this point in the history
  • Loading branch information
durera authored Nov 15, 2023
1 parent ef85eb6 commit 8f86e2b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion image/cli/mascli/functions/update
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ function show_current_catalog() {
reset_colors

if [[ "$catalogDisplayName" =~ .+(v8-[0-9]+-amd64) ]]; then
# catalogId = v8-yymmdd-amd64
# catalogVersion = yymmdd
catalogId=$(sed -E "s/.+\\((v8-[0-9]+-amd64)\\)/\1/" <<< $catalogDisplayName)
catalogVersion=$(sed -E "s/.+\\(v8-([0-9]+)-amd64\\)/\1/" <<< $catalogDisplayName)
catalogIsDynamic=false
Expand Down Expand Up @@ -213,7 +215,7 @@ function update() {

echo "${TEXT_DIM}"
echo_h4 "IBM Operator Catalog" " "
echo_reset_dim "Current Catalog Version .................... ${COLOR_MAGENTA}${catalogVersion:-unknown}${COLOR_RESET}"
echo_reset_dim "Current Catalog Version .................... ${COLOR_MAGENTA}${catalogId:-unknown}${COLOR_RESET}"
echo_reset_dim "Updated Catalog Version .................... ${COLOR_MAGENTA}${MAS_CATALOG_VERSION}${COLOR_RESET}"
echo "${TEXT_DIM}"
echo_h4 "Updates" " "
Expand Down

0 comments on commit 8f86e2b

Please sign in to comment.