Skip to content

Commit 10caecb

Browse files
committed
feat(.version): add .version file
1 parent e17cc7b commit 10caecb

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

.github/.version

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export PKG_VERSION="0.1.0"
2+
export PKG_BUILD="1001"
3+
export PKG_BUILD_DATE="20230813:1940"

src/bb-logger.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -446,14 +446,14 @@ log::version()
446446
local verbosity="${1:-}"
447447

448448
if [[ -z "$verbosity" ]]; then
449-
echo "${LOGGER_VERSION}"
449+
echo "${PKG_VERSION}"
450450
else
451451
echo
452452
echo "Bash-Bits Modular Bash Library"
453-
echoWhite "BB-Logger Module ${LOGGER_VERSION}"
453+
echoWhite "BB-Logger Module ${PKG_VERSION}"
454454
echo "Copyright © 2022-2023 Darren (Ragdata) Poulton"
455-
echo "Build: ${LOGGER_BUILD}"
456-
echo "Build Date: ${LOGGER_BUILD_DATE}"
455+
echo "Build: ${PKG_BUILD}"
456+
echo "Build Date: ${PKG_BUILD_DATE}"
457457
echo
458458
fi
459459
}

0 commit comments

Comments
 (0)