From efbe2d5e9848f52bd42d2fb6c2753471a04eee20 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Fri, 18 Jan 2019 09:38:07 +0100 Subject: [PATCH] firmware: correct invisible error in health check --- src/opnsense/scripts/firmware/health.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/opnsense/scripts/firmware/health.sh b/src/opnsense/scripts/firmware/health.sh index 74efcadb4..ff60df06b 100755 --- a/src/opnsense/scripts/firmware/health.sh +++ b/src/opnsense/scripts/firmware/health.sh @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright (C) 2017-2018 Franco Fichtner +# Copyright (C) 2017-2019 Franco Fichtner # 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