redirect stdout to /dev/null (#772)

* pacman -Qq outputs to stdout

* redirect stdout to /dev/null as well

Co-authored-by: Alexander Goussas <alexander@alexandergoussas.com>
This commit is contained in:
Alexander Goussas 2020-07-26 05:28:00 -07:00 committed by GitHub
parent 94c6f3cdde
commit 536ec1a09b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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