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:
parent
94c6f3cdde
commit
536ec1a09b
1 changed files with 1 additions and 1 deletions
|
@ -6,6 +6,6 @@
|
||||||
# various other scripts for clarity's sake.
|
# various other scripts for clarity's sake.
|
||||||
|
|
||||||
for x in "$@";do
|
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 ;}
|
{ notify-send "📦 $x" "must be installed for this function." && exit 1 ;}
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue