From: James Cameron Date: Wed, 29 Oct 2008 09:30:52 +0000 (+1100) Subject: suppress dd(1) stderr X-Git-Tag: v0.4~22 X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ac9597cb8d18c5917ac4d77bcf7fe665627fabf;p=xodist suppress dd(1) stderr --- diff --git a/mkjffs2.sh b/mkjffs2.sh index da53633..a885a24 100755 --- a/mkjffs2.sh +++ b/mkjffs2.sh @@ -65,7 +65,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 }