Skip to content

Commit 19fe6d1

Browse files
committed
feat(.version): add .version file
1 parent 3f26d12 commit 19fe6d1

2 files changed

Lines changed: 8 additions & 10 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-functions.sh

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@ bb-import bb-functions/is
1717
# ==================================================================
1818
# VARIABLES
1919
# ==================================================================
20-
#
21-
# BUILD VARIABLES
22-
#
23-
declare -gx FUNCTIONS_BUILD="x"
24-
declare -gx FUNCTIONS_VERSION="v-1.0.0"
25-
declare -gx FUNCTIONS_BUILD_DATE="20230718-0033"
20+
source ../.github/.version
2621
# ==================================================================
2722
# FUNCTIONS
2823
# ==================================================================
@@ -64,14 +59,14 @@ functions::version()
6459
local verbosity="${1:-}"
6560

6661
if [[ -z "$verbosity" ]]; then
67-
echo "${FUNCTIONS_VERSION}"
62+
echo "${PKG_VERSION}"
6863
else
6964
echo
7065
echo "Bash-Bits Modular Bash Library"
71-
echoWhite "BB-Functions Module ${FUNCTIONS_VERSION}"
66+
echoWhite "BB-Functions Module ${PKG_VERSION}"
7267
echo "Copyright © 2022-2023 Darren (Ragdata) Poulton"
73-
echo "Build: ${FUNCTIONS_BUILD}"
74-
echo "Build Date: ${FUNCTIONS_BUILD_DATE}"
68+
echo "Build: ${PKG_BUILD}"
69+
echo "Build Date: ${PKG_BUILD_DATE}"
7570
echo
7671
fi
7772
}

0 commit comments

Comments
 (0)