Skip to content

Commit

Permalink
Fix the md5s function for Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuki Shimada committed Jun 1, 2021
1 parent 8604d34 commit 130a6af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/checkkeylength
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ if [[ $# -lt 1 ]]; then
fi

md5s() {
if [ -e md5sum ]; then
echo "$1" | md5sum
elif [ -e md5 ]; then
if [ -e "$(which md5sum)" ]; then
echo "$1" | md5sum | awk '{ print $1 }'
elif [ -e "$(which md5)" ]; then
md5 -q -s "$1"
fi
}
Expand Down

0 comments on commit 130a6af

Please sign in to comment.