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:
parent
808cb31e91
commit
92a47949e8
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue