Skip to content
Snippets Groups Projects
Commit fb49e670 authored by Edileuton Henrique de Oliveira's avatar Edileuton Henrique de Oliveira
Browse files

agent: Remove --quiet option in the md5 check

parent 05fc216a
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,7 @@ if ! test -f ".md5sum"; then
restore_backup
fi
if ! md5sum --quiet --check ".md5sum"; then
if ! md5sum --check ".md5sum" > /dev/null 2>&1 ; then
date +"%F %T - WARNING: Corrupted files detected. Restoring backup."
restore_backup
fi
......
......@@ -77,7 +77,7 @@ fi
rm -f "${PKG_FILE}"
# Check if the new files are OK
if ! md5sum --quiet --check .md5sum; then
if ! md5sum --check .md5sum > /dev/null 2>&1 ; then
printf "WARNING: Arquivos extraidos corrompidos, restaurando backup...\n"
# Check if backup exists
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment