Commit 7182bde3 authored by Sam Stephenson's avatar Sam Stephenson
Browse files

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

parent c48c6f36
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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% *}"