X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=include%2Fshell.sh;h=f6be6c526f26fb489cc660d7201bce3c3a1117b7;hb=f63229d431eb2f7f67d398e2aa2d52621f4f206b;hp=db4100326277cce3c16e7f9cbb31b57f5bd1c591;hpb=c3241962560c5e114f3bbc3e7f1a52917730993e;p=openwrt.git diff --git a/include/shell.sh b/include/shell.sh index db41003262..f6be6c526f 100644 --- a/include/shell.sh +++ b/include/shell.sh @@ -30,5 +30,5 @@ trapret() {( )} md5s() { - which md5sum 2>&- >&- && md5sum "$@" | awk '{print $1}' || md5 "$@" + which md5sum 2>&1 >/dev/null && md5sum "$@" | awk '{print $1}' || md5 "$@" }