firmware: error on missing file

Unlikely published in 18.7.x, and even there .mtree will exist
with 18.7.9 update at the very latest.
This commit is contained in:
Franco Fichtner 2018-12-04 07:18:29 +01:00
parent 8a4c461442
commit f0cbe9ac99

View File

@ -74,15 +74,15 @@ set_check()
echo "Version ${VER} is correct." >> ${PKG_PROGRESS_FILE}
fi
echo ">>> Check for missing or altered ${SET} files" >> ${PKG_PROGRESS_FILE}
FILE=/usr/local/opnsense/version/${SET}.mtree
if [ ! -f ${FILE} ]; then
# XXX complain if file is missing post-18.7
echo "Cannot verify ${SET}: missing ${FILE}" >> ${PKG_PROGRESS_FILE}
return
fi
echo ">>> Check for missing or altered ${SET} files" >> ${PKG_PROGRESS_FILE}
echo "${MTREE_PATTERNS}" > ${TMPFILE}
MTREE_OUT=$(${MTREE} -X ${TMPFILE} < ${FILE} 2>&1)