mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-25 12:44:35 +00:00
Suppress stderr (loading) output from gh-notify
This commit is contained in:
parent
64beef9cb6
commit
0e148e6343
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue