clean up md5s() shell function
SVN-Revision: 12493
This commit is contained in:
parent
799e7a8fa8
commit
6f16d961a5
1 changed files with 4 additions and 1 deletions
|
@ -30,5 +30,8 @@ trapret() {(
|
|||
)}
|
||||
|
||||
md5s() {
|
||||
which md5sum 2>&1 >/dev/null && md5sum "$@" | awk '{print $1}' || md5 "$@"
|
||||
cat "$@" | (
|
||||
md5sum 2>/dev/null ||
|
||||
md5
|
||||
) | awk '{print $1}'
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue