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 <eap08@c3sl.ufpr.br>
Acked-by: default avatarAdriano da Luz <al08@c3sl.ufpr.br>
Acked-by: default avatarJosiney de Souza <josineys@c3sl.ufpr.br>
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"
"integrity.\n"
exit 5
fi
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