From 8fe09657374358831582b771c35bab9c2f294cbf Mon Sep 17 00:00:00 2001 From: Lenin Mehedy Date: Mon, 13 Nov 2023 15:14:49 +1100 Subject: [PATCH] fix: polish up debug messages Signed-off-by: Lenin Mehedy --- dev/scripts/helper.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dev/scripts/helper.sh b/dev/scripts/helper.sh index cb1ffe455..1478bf194 100755 --- a/dev/scripts/helper.sh +++ b/dev/scripts/helper.sh @@ -285,13 +285,14 @@ function copy_node_keys() { # prepare address book using all nodes pod IP and store as config.txt function prep_address_book() { + IFS=. read -a VERSION_PARTS <<< "$PLATFORM_VERSION" + local MINOR_VERSION=${VERSION_PARTS[1]} + echo "" echo "Preparing address book" + echo "PLATFORM_VERSION [ MAJOR: ${VERSION_PARTS[0]}, MINOR=${VERSION_PARTS[1]}, PATCH=${VERSION_PARTS[2]} ]" echo "-----------------------------------------------------------------------------------------------------" - IFS=. read -a VERSION_PARTS <<< "$PLATFORM_VERSION" - echo "MAJOR: ${VERSION_PARTS[0]}, MINOR=${VERSION_PARTS[1]}, PATCH=${VERSION_PARTS[2]}" - local MINOR_VERSION=${VERSION_PARTS[1]} local config_file="${TMP_DIR}/config.txt"