Skip to content

Commit

Permalink
update: return version only if found
Browse files Browse the repository at this point in the history
Avoid giving "unknown" since we only want to use it
as an internal way of handling the situation.
  • Loading branch information
fichtner committed Feb 18, 2021
1 parent 808cb31 commit 92a4794
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion update/opnsense-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 92a4794

Please sign in to comment.