Add NetBSD and SunOS support to md5sum_file.

This commit is contained in:
Travis Paul
2018-11-29 12:47:37 +08:00
parent ab1430b74d
commit 6408b622bf

View File

@@ -411,6 +411,12 @@ function md5sum_file() {
Darwin | FreeBSD )
md5 -r "$1" | awk '{ print $1 }'
;;
NetBSD )
md5 -q "$1"
;;
SunOS )
digest -a md5 "$1"
;;
Linux | CYGWIN* | MINGW* )
md5sum "$1" | awk '{ print $1 }'
;;