mirror of
https://github.com/openwrt/openwrt.git
synced 2024-11-23 18:05:20 +08:00
clean up md5s() shell function
SVN-Revision: 12493
This commit is contained in:
parent
799e7a8fa8
commit
6f16d961a5
@ -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 New Issue
Block a user