Commit 7182bde3 by Sam Stephenson

Account for prefixed output in recent versions of `openssl md5`

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