From fb7bfafd69c95231d3b2cda277a113ad069e3553 Mon Sep 17 00:00:00 2001 From: Robert Adams Date: Sun, 22 Sep 2024 20:03:38 +0000 Subject: [PATCH] Add "ALL" parameter to getVersion.sh Bump version to 4.0.8 --- VERSION.txt | 2 +- run-scripts/getVersion.sh | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/VERSION.txt b/VERSION.txt index 43beb40..a2cec7a 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -4.0.7 +4.0.8 diff --git a/run-scripts/getVersion.sh b/run-scripts/getVersion.sh index a6be61b..9a06a99 100755 --- a/run-scripts/getVersion.sh +++ b/run-scripts/getVersion.sh @@ -19,7 +19,14 @@ done if [[ -z "$part" ]] ; then echo "${OS_VERSION}-${OS_GIT_BRANCH}-${OS_GIT_COMMIT_SHORT}-${BUILD_DATE}/${OS_DOCKER_IMAGE_VERSION}" else - cat ${VERSIONDIR}/$part + if [[ "$part" == "ALL" ]] ; then + cd "$VERSIONDIR" + for vn in * ; do + echo "$vn = $(cat $vn)" + done + else + cat ${VERSIONDIR}/$part + fi fi # echo "$(cat $VERSIONDIR/OS_VERSION)-$(cat $VERSIONDIR/OS_GIT_COMMIT_SHORT)-$(cat $VERSIONDIR/OS_DOCKER_IMAGE_VERSION)-$(cat $VERSIONDIR/BUILD_DATE)-$($VERSIONDIR/OS_DOCKER_GIT_COMMIT_SHORT)"