From 79fbcb245963cd16c1f489b0137df15de59b531a Mon Sep 17 00:00:00 2001 From: James Cameron Date: Wed, 29 Oct 2008 20:30:52 +1100 Subject: [PATCH] suppress dd(1) stderr --- mkjffs2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkjffs2.sh b/mkjffs2.sh index b67dde9..3153795 100755 --- a/mkjffs2.sh +++ b/mkjffs2.sh @@ -68,7 +68,7 @@ do_sha256() f=$1 eblocks=$((`stat --printf "%s\n" $f` / (128*1024))) for b in $(seq 0 $(($eblocks - 1))); do - sha=$(dd status=noxfer bs=128KiB skip=$b count=1 if=$f | sha256sum | cut -d- -f1) + sha=$(dd status=noxfer bs=128KiB skip=$b count=1 if=$f 2>/dev/null | sha256sum | cut -d- -f1) echo "eblock: `printf '%x' $b` sha256 $sha" >> ${IMG_NAME} done } -- 2.39.5