From 0e148e634395f9d35b3fa24685135bf0ba5db134 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Fri, 17 Feb 2023 11:28:13 +0100 Subject: [PATCH] Suppress stderr (loading) output from gh-notify --- home/.local/bin/scripts/gui/gh-notification | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/.local/bin/scripts/gui/gh-notification b/home/.local/bin/scripts/gui/gh-notification index 0702223..7160eae 100755 --- a/home/.local/bin/scripts/gui/gh-notification +++ b/home/.local/bin/scripts/gui/gh-notification @@ -188,7 +188,7 @@ send_notify() { # Obtain notifications and show them, if they weren't showed (aren't in cache) already # ------------------------------------------------------------------------------------ # Request unread notifications with gh-notify extension for github-cli -[ "$ALL" -eq 1 ] && out="$(gh notify -s -a -n "$MAX_AMOUNT")" || out="$(gh notify -s -n "$MAX_AMOUNT")" +[ "$ALL" -eq 1 ] && out="$(gh notify -s -a -n "$MAX_AMOUNT" 2>/dev/null)" || out="$(gh notify -s -n "$MAX_AMOUNT" 2>/dev/null)" # When no notifications were found, set output to empty string, to avoid 'All caught up!' line # being treated as notification