Skip to content

Commit

Permalink
parse: fix missing occurrence of ${VERSION_SEPARATOR}
Browse files Browse the repository at this point in the history
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")
  • Loading branch information
rohieb committed Mar 16, 2024
1 parent c42d427 commit fd6a82b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion umpf
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ parse() {
test -n "${content}" || bailout "${cmd} line without value"
if ${STABLE}; then
local name="$(<"${STATE}/name")"
local version="$(sed "s;${name}/\([0-9]\{8\}\)-.*;\1${VERSION_SEPARATOR}${VERSION};" <<< "${content}")"
local version="$(sed "s;${name}/\([0-9]\{8\}\)${VERSION_SEPARATOR}.*;\1${VERSION_SEPARATOR}${VERSION};" <<< "${content}")"
local tagname="${name}/${version}"
echo "${version}" > "${STATE}/version"
echo "${tagname}" > "${STATE}/tag"
Expand Down

0 comments on commit fd6a82b

Please sign in to comment.