From 55434fb26d000314fb785527d396a8e2a40446bb Mon Sep 17 00:00:00 2001 From: HikariKnight <2557889+HikariKnight@users.noreply.github.com> Date: Sat, 12 Mar 2022 17:56:23 +0100 Subject: [PATCH] send all the output of which to null --- lib/set_CMDLINE.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/set_CMDLINE.sh b/lib/set_CMDLINE.sh index 24604cb..cd929a3 100755 --- a/lib/set_CMDLINE.sh +++ b/lib/set_CMDLINE.sh @@ -150,7 +150,7 @@ function set_CMDLINE () { BOOTLOADER_AUTOCONFIG=0 # If kernelstub is detected (program to manage systemd-boot) - if which kernelstub > /dev/null ; + if which kernelstub > /dev/null 2>&1 ; then # Configure kernelstub set_KERNELSTUB @@ -158,7 +158,7 @@ function set_CMDLINE () { fi # If grub exists - if which grub-mkconfig > /dev/null ; + if which grub-mkconfig > /dev/null 2>&1 ; then # Configure grub set_GRUB