From: sev Date: Sun, 11 Oct 2020 21:35:50 +0000 (-0500) Subject: suppress stderr for `which gpg` X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/commitdiff_plain/e1a1a1d18d6e57aaca2155bf402879c44512aade?ds=sidebyside suppress stderr for `which gpg` --- diff --git a/install.sh b/install.sh index 25e094a..34722ed 100755 --- a/install.sh +++ b/install.sh @@ -73,7 +73,7 @@ done find gpg -mindepth 1 -maxdepth 1 \! -name '*.gpg' | while read -r x; do l "$HOME/.gnupg/`basename "$x"`" done -if which gpg >/dev/null; then +if which gpg >/dev/null 2>&1; then find gpg -mindepth 1 -maxdepth 1 -name '*.gpg' | while read -r x; do gpg --import "$x" done