From 1467fe31a141927266bb877602a1fd6c3d99a879 Mon Sep 17 00:00:00 2001 From: Alexander Goussas Date: Thu, 23 Jul 2020 20:47:34 -0500 Subject: [PATCH] redirect stdout to /dev/null as well --- .local/bin/ifinstalled | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/ifinstalled b/.local/bin/ifinstalled index ccbaefb8..be3ac245 100755 --- a/.local/bin/ifinstalled +++ b/.local/bin/ifinstalled @@ -6,6 +6,6 @@ # various other scripts for clarity's sake. for x in "$@";do - pacman -Qq "$x" >/dev/null || + pacman -Qq "$x" >/dev/null 2>&1 || { notify-send "📦 $x" "must be installed for this function." && exit 1 ;} done