Skip to content
Snippets Groups Projects
Commit c5c157e9 authored by Erik Alexandre Pucci's avatar Erik Alexandre Pucci
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment