lsinitrd.sh: dismiss "cat" error messages

nobody wants to see "cat: broken pipe"
master
Harald Hoyer 2017-10-26 09:08:28 +02:00
parent 21789cbb0a
commit e190224345
1 changed files with 2 additions and 2 deletions

View File

@ -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"