Skip to content

Commit 919b0e0

Browse files
committed
parse: fix missing occurrence of ${VERSION_SEPARATOR}
In case of ${STABLE}, the version line comes from a previous utag, which means it was written by umpf itself using ${VERSION_SEPARATOR}, which was previously hard-coded as "-". Use it also when parsing back the version. Fixes: a864fe6 (2023-04-20, "umpf: split off VERSION_SEPARATOR from VERSION") Signed-off-by: Roland Hieber <rhi@pengutronix.de>
1 parent c42d427 commit 919b0e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

umpf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ parse() {
928928
test -n "${content}" || bailout "${cmd} line without value"
929929
if ${STABLE}; then
930930
local name="$(<"${STATE}/name")"
931-
local version="$(sed "s;${name}/\([0-9]\{8\}\)-.*;\1${VERSION_SEPARATOR}${VERSION};" <<< "${content}")"
931+
local version="$(sed "s;${name}/\([0-9]\{8\}\)${VERSION_SEPARATOR}.*;\1${VERSION_SEPARATOR}${VERSION};" <<< "${content}")"
932932
local tagname="${name}/${version}"
933933
echo "${version}" > "${STATE}/version"
934934
echo "${tagname}" > "${STATE}/tag"

0 commit comments

Comments
 (0)