From a7e8c3b085b64397f00a7c0baf2370f9b5a930b0 Mon Sep 17 00:00:00 2001 From: mhmdanas Date: Thu, 23 Mar 2023 15:07:40 +0000 Subject: xchangelog: silence grep output --- xchangelog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xchangelog b/xchangelog index e97cdf0..8f25228 100755 --- a/xchangelog +++ b/xchangelog @@ -26,7 +26,7 @@ fi if ! [ -t 1 ]; then curl -s -- "$changelog" -elif curl -sI -w "%{content_type}" -o /dev/null -- "$changelog" | grep -i "^text/plain"; then +elif curl -sI -w "%{content_type}" -o /dev/null -- "$changelog" | grep -qi "^text/plain"; then if [ -n "$PAGER" ]; then curl -s -- "$changelog" | "$PAGER" elif type less >/dev/null; then -- cgit 1.4.1