From d23e978ecc594933a1f7f7710ed09c604033f1a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20S=C3=89RIE?= Date: Thu, 12 Mar 2015 15:27:38 +0100 Subject: [PATCH] Replace md5sum --quiet with --status, more portable. --- evomalware.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/evomalware.sh b/evomalware.sh index 2c0e913..b44b553 100644 --- a/evomalware.sh +++ b/evomalware.sh @@ -13,6 +13,7 @@ find="ionice -c3 find -O3" grep="nice -n 19 grep" wc="nice -n 19 wc" wget="wget -q -t 3" +md5sum="md5sum --status -c" # Various. fileslist=$(mktemp) tmpPATH=/tmp/evomalware.tmp @@ -41,7 +42,7 @@ cd $tmpPATH for file in evomalware.filenames evomalware.patterns evomalware.whitelist evomalware.suspect; do $wget ${databaseURL}/${file} $wget ${databaseURL}/${file}.md5 - if md5sum --quiet -c ${file}.md5; then + if $md5sum ${file}.md5; then cp $file ${databasePATH}/ else echo "Error with ${databaseURL}/${file}, wrong md5sum!"