`echo "test"|xz|xz -dc --single-stream` will display "test" on terminal, redirect it to /dev/null.
Cc: Harald Hoyer <[email protected]> Signed-off-by: WANG Cong <[email protected]> --- diff --git a/lsinitrd b/lsinitrd index 1d953b7..fb3769c 100755 --- a/lsinitrd +++ b/lsinitrd @@ -36,7 +36,7 @@ image="${1:-/boot/initramfs-$(uname -r).img}" CAT=zcat FILE_T=$(file "$image") -if echo "test"|xz|xz -dc --single-stream; then +if echo "test"|xz|xz -dc --single-stream >/dev/null; then XZ_SINGLE_STREAM="--single-stream" fi -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
