Add "ALL" parameter to getVersion.sh

Bump version to 4.0.8
This commit is contained in:
Robert Adams
2024-09-22 20:03:38 +00:00
parent 1732acd25e
commit fb7bfafd69
2 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
4.0.7
4.0.8
+8 -1
View File
@@ -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)"