diff options
| author | Alexander Goussas <agoussas@espol.edu.ec> | 2020-07-26 05:28:00 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-26 08:28:00 -0400 |
| commit | 536ec1a09b59ddc44036f81cc29a69a3f3cce5a9 (patch) | |
| tree | 21200276c9c4fa62c06d08eff699bc91f6a4009e /.local/bin/ifinstalled | |
| parent | 94c6f3cdded77a9e97cccefef9ac0c6ccd28244d (diff) | |
| download | eibhear-536ec1a09b59ddc44036f81cc29a69a3f3cce5a9.tar.gz eibhear-536ec1a09b59ddc44036f81cc29a69a3f3cce5a9.tar.zst eibhear-536ec1a09b59ddc44036f81cc29a69a3f3cce5a9.zip | |
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>
Diffstat (limited to '.local/bin/ifinstalled')
| -rwxr-xr-x | .local/bin/ifinstalled | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
