update: return version only if found

Avoid giving "unknown" since we only want to use it
as an internal way of handling the situation.
This commit is contained in:
Franco Fichtner 2021-02-18 08:54:49 +01:00
parent 808cb31e91
commit 92a47949e8
1 changed files with 3 additions and 1 deletions

View File

@ -336,7 +336,9 @@ elif [ -n "${DO_RELEASE}" ]; then
fi
if [ -n "${DO_VERSION}" ]; then
echo ${RELEASE}
if [ "${DO_RELEASE}" != "-R" -o -f ${UPGRADEHINT} ]; then
echo ${RELEASE}
fi
exit 0
fi