From: Harald Hoyer Date: Thu, 26 Oct 2017 07:08:28 +0000 (+0200) Subject: lsinitrd.sh: dismiss "cat" error messages X-Git-Tag: 047~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e190224345f3a8b2f9e85d84bc879dd96bf265da;p=thirdparty%2Fdracut.git lsinitrd.sh: dismiss "cat" error messages nobody wants to see "cat: broken pipe" --- diff --git a/lsinitrd.sh b/lsinitrd.sh index f40884536..f3f727c84 100755 --- a/lsinitrd.sh +++ b/lsinitrd.sh @@ -172,7 +172,7 @@ fi read -N 6 bin < "$image" case $bin in $'\x71\xc7'*|070701) - CAT="cat --" + CAT="cat 2>/dev/null --" is_early=$(cpio --extract --verbose --quiet --to-stdout -- 'early_cpio' < "$image" 2>/dev/null) if [[ "$is_early" ]]; then if [[ -n "$unpackearly" ]]; then @@ -211,7 +211,7 @@ case $bin in CAT="bzcat --" ;; $'\x71\xc7'*|070701) - CAT="cat --" + CAT="cat 2>/dev/null --" ;; $'\x02\x21'*) CAT="lz4 -d -c"