Commit c5c157e9 authored by Erik Alexandre Pucci's avatar Erik Alexandre Pucci

build-update-package: Added check to verify the existence of .md5sum dir

Exit on error 5, in case there is no .md5sum directory.
Signed-off-by: default avatarErik Alexandre Pucci <>
Acked-by: default avatarAdriano da Luz <>
Acked-by: default avatarJosiney de Souza <>
parent fa9726fa
......@@ -71,6 +71,12 @@ cd "${AGENTDIR}"
# Check all MD5 files
printf "Checking SEED2-run files integrity... "
if ! test -d "${MD5DIR}"; then
printf "ERROR (5): There is no MD5 directory. Please, run create %b"
exit 5
for FILE in $(find "${MD5DIR}" -type f); do
if ! check_file_integrity "${FILE}"; then
printf "ERROR (3): File(s) corrupted. Please, re-create integrity or %b"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment