send all the output of which to null

This commit is contained in:
HikariKnight 2022-03-12 17:56:23 +01:00
parent cac6eee5e8
commit 55434fb26d
No known key found for this signature in database
GPG key ID: E8B239063B022F5A

View file

@ -150,7 +150,7 @@ function set_CMDLINE () {
BOOTLOADER_AUTOCONFIG=0 BOOTLOADER_AUTOCONFIG=0
# If kernelstub is detected (program to manage systemd-boot) # If kernelstub is detected (program to manage systemd-boot)
if which kernelstub > /dev/null ; if which kernelstub > /dev/null 2>&1 ;
then then
# Configure kernelstub # Configure kernelstub
set_KERNELSTUB set_KERNELSTUB
@ -158,7 +158,7 @@ function set_CMDLINE () {
fi fi
# If grub exists # If grub exists
if which grub-mkconfig > /dev/null ; if which grub-mkconfig > /dev/null 2>&1 ;
then then
# Configure grub # Configure grub
set_GRUB set_GRUB