mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 17:44:41 +00:00
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:
parent
8a4c461442
commit
f0cbe9ac99
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user