diff --git a/build-update-package b/build-update-package index 57705ade81e5a18866a35a04889bb6b8a1a16ad6..de499aaece669418e125cb696d48caac6296c5dd 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"