From e1628ad8f3e63428888b42d0c49c3fe6b3c9d006 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Wed, 7 May 2025 19:04:52 +0100 Subject: init.sh: export LOCALVERSION in set_env Don't do it in set_version Signed-off-by: Leah Rowe --- include/init.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/init.sh') diff --git a/include/init.sh b/include/init.sh index 6ccdf13f..1bf52eef 100644 --- a/include/init.sh +++ b/include/init.sh @@ -119,11 +119,12 @@ xbmk_set_version() printf "%s\n" "$versiondate" > ".versiondate" || err "can't save date" relname="$projectname-$version" - export LOCALVERSION="-$projectname-${version%%-*}" } xbmk_set_env() { + export LOCALVERSION="-$projectname-${version%%-*}" + # XBMK_CACHE is a directory, for caching downloads and git repon [ -z "${XBMK_CACHE+x}" ] && export XBMK_CACHE="$xbmkpwd/cache" [ -z "$XBMK_CACHE" ] && export XBMK_CACHE="$xbmkpwd/cache" -- cgit v1.2.1