From 536ec1a09b59ddc44036f81cc29a69a3f3cce5a9 Mon Sep 17 00:00:00 2001 From: Alexander Goussas Date: Sun, 26 Jul 2020 05:28:00 -0700 Subject: [PATCH] redirect stdout to /dev/null (#772) * pacman -Qq outputs to stdout * redirect stdout to /dev/null as well Co-authored-by: Alexander Goussas --- .local/bin/ifinstalled | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/ifinstalled b/.local/bin/ifinstalled index e2013a4..be3ac24 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" 2>/dev/null || + pacman -Qq "$x" >/dev/null 2>&1 || { notify-send "📦 $x" "must be installed for this function." && exit 1 ;} done