From 77a8c0bcac0ed4d34b1410a41a99530252d7ed65 Mon Sep 17 00:00:00 2001 From: Javier Martinez Canillas Date: Fri, 22 Nov 2019 14:59:58 +0100 Subject: [PATCH] grubby-bls: don't print rpm-sort error messages If there are no BLS snippets, an empty array of strings is passed to the rpm-sort tool and it will print an error that just confuses grubby users. Resolves: rhbz#1731924 Signed-off-by: Javier Martinez Canillas --- grubby-bls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grubby-bls b/grubby-bls index 90db0a5..8c423dd 100755 --- a/grubby-bls +++ b/grubby-bls @@ -92,7 +92,7 @@ get_bls_values() { bls="${bls%.conf}" bls="${bls##*/}" echo "${bls}" - done | /usr/libexec/grubby/rpm-sort -c rpmnvrcmp | tac)) || : + done | /usr/libexec/grubby/rpm-sort -c rpmnvrcmp 2>/dev/null | tac)) || : for bls in "${files[@]}" ; do blspath="${blsdir}/${bls}.conf"