Remove warning in maint scripts for grub mode detection

This commit is contained in:
Aurélien COUDERC
2016-11-06 23:36:53 +00:00
parent c09104ccd3
commit 2953f416ba
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -153,7 +153,7 @@ EOF
# Alternatives for grub
# Highest priority for active theme
## Favor widescreen / hi-res background for efi installations
num_grub_efi_installed=$(dpkg-query --list "grub-efi*" | grep "^i" | wc -l)
num_grub_efi_installed=$(dpkg-query --list "grub-efi*" 2> /dev/null | grep "^i" | wc -l)
if [ $num_grub_efi_installed -gt 0 ] ; then
grub_prio_4x3=15
grub_prio_16x9=20
+1 -1
View File
@@ -145,7 +145,7 @@ spacefun-grub.png
spacefun-grub-widescreen.png
EOF
## *Lastly* remove *highest priority* alternative
num_grub_efi_installed=$(dpkg-query --list "grub-efi*" | grep "^i" | wc -l)
num_grub_efi_installed=$(dpkg-query --list "grub-efi*" 2> /dev/null | grep "^i" | wc -l)
if [ $num_grub_efi_installed -gt 0 ] ; then
remove_first_ratio=4x3
remove_last_ratio=16x9