From c5c157e967e1695cdf5d4f7f2b4a39309e37d8f8 Mon Sep 17 00:00:00 2001 From: Erik Alexandre Pucci <eap08@c3sl.ufpr.br> Date: Thu, 16 Jun 2011 11:37:47 -0300 Subject: [PATCH] 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: Erik Alexandre Pucci <eap08@c3sl.ufpr.br> Acked-by: Adriano da Luz <al08@c3sl.ufpr.br> Acked-by: Josiney de Souza <josineys@c3sl.ufpr.br> --- build-update-package | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build-update-package b/build-update-package index 57705ad..de499aa 100755 --- a/build-update-package +++ b/build-update-package @@ -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" -- GitLab