From d8ebdbea4187bfc3785090b7806034e119caab2e Mon Sep 17 00:00:00 2001 From: rich prohaska Date: Tue, 23 Jul 2013 10:23:09 -0400 Subject: [PATCH] #45 parse md5sum or jacksum files --- scripts/setup.mysql.bash | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/setup.mysql.bash b/scripts/setup.mysql.bash index 1677911294e..01a264fde5a 100755 --- a/scripts/setup.mysql.bash +++ b/scripts/setup.mysql.bash @@ -71,8 +71,10 @@ if [ ! -f $mysqltarball.md5 ] ; then if [ $? -ne 0 ] ; then exit 1; fi fi +# check the md5 sum md5sum --check $mysqltarball.md5 if [ $? -ne 0 ] ; then + # support jacksum md5 output which is almost the same as md5sum diff -b <(cat $mysqltarball.md5) <(md5sum $mysqltarball) if [ $? -ne 0 ] ; then exit 1; fi fi