firmware: correct invisible error in health check

This commit is contained in:
Franco Fichtner 2019-01-18 09:38:07 +01:00
parent 23c7c6f249
commit efbe2d5e98

View File

@ -1,6 +1,6 @@
#!/bin/sh
# Copyright (C) 2017-2018 Franco Fichtner <franco@opnsense.org>
# Copyright (C) 2017-2019 Franco Fichtner <franco@opnsense.org>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@ -66,8 +66,9 @@ set_check()
VER=$(opnsense-version -v ${SET})
echo ">>> Check installed ${SET} version" >> ${PKG_PROGRESS_FILE}
if [ -z "${VER}" -o -z "${VERSION}" ]; then
echo "Failed to determine version info."
echo "Failed to determine version info." >> ${PKG_PROGRESS_FILE}
elif [ "${VER}" != "${VERSION}" ]; then
echo "Version ${VER} is incorrect: expected ${VERSION}" >> ${PKG_PROGRESS_FILE}
else