Commit d8ebdbea authored by rich prohaska's avatar rich prohaska

#45 parse md5sum or jacksum files

parent 751c71ac
...@@ -71,8 +71,10 @@ if [ ! -f $mysqltarball.md5 ] ; then ...@@ -71,8 +71,10 @@ if [ ! -f $mysqltarball.md5 ] ; then
if [ $? -ne 0 ] ; then exit 1; fi if [ $? -ne 0 ] ; then exit 1; fi
fi fi
# check the md5 sum
md5sum --check $mysqltarball.md5 md5sum --check $mysqltarball.md5
if [ $? -ne 0 ] ; then if [ $? -ne 0 ] ; then
# support jacksum md5 output which is almost the same as md5sum
diff -b <(cat $mysqltarball.md5) <(md5sum $mysqltarball) diff -b <(cat $mysqltarball.md5) <(md5sum $mysqltarball)
if [ $? -ne 0 ] ; then exit 1; fi if [ $? -ne 0 ] ; then exit 1; fi
fi fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment