From b4a8a4f9c423efd8eaea9eb4d70dec21e3f29a2f Mon Sep 17 00:00:00 2001 From: sev Date: Sun, 11 Oct 2020 16:35:50 -0500 Subject: [PATCH] suppress stderr for `which gpg` --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.0