Commit 9456402f by Sam Stephenson

Compute MD5 using OpenSSL if installed

parent 645933fa
...@@ -132,6 +132,8 @@ make_package() { ...@@ -132,6 +132,8 @@ make_package() {
compute_md5() { compute_md5() {
if type md5 &>/dev/null; then if type md5 &>/dev/null; then
md5 -q md5 -q
elif type openssl &>/dev/null; then
openssl md5
elif type md5sum &>/dev/null; then elif type md5sum &>/dev/null; then
local output="$(md5sum -b)" local output="$(md5sum -b)"
echo "${output% *}" echo "${output% *}"
......
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