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