From 2097b0ebfdd07ae7a8295c26703d8d88ee7a5f8f Mon Sep 17 00:00:00 2001 From: iceyrazor Date: Wed, 10 Jun 2026 00:48:19 -0500 Subject: Squashed commit of the following: made all scripts mostly posix moved from gajim to dino --- env/.local/bin/system/start-scripts/newsboat-fetch.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'env/.local/bin/system/start-scripts/newsboat-fetch.sh') diff --git a/env/.local/bin/system/start-scripts/newsboat-fetch.sh b/env/.local/bin/system/start-scripts/newsboat-fetch.sh index 06b08d9..5eefe9b 100755 --- a/env/.local/bin/system/start-scripts/newsboat-fetch.sh +++ b/env/.local/bin/system/start-scripts/newsboat-fetch.sh @@ -4,9 +4,9 @@ newsboat_loop(){ #newsboat -x print-unread | xargs -0 notify-send "newsboat feed" unreads=$(newsboat -x print-unread) - unreadnum=$(printf "$unreads" | sed 's/ .*//g') + unreadnum=$(printf -- "%s" "$unreads" | sed 's/ .*//g') - if (( $unreadnum > 0 )); then + if [ "$unreadnum" -gt 0 ]; then notify-send "newsboat feed" "$unreads" fi notify-send "Vitamins!" "take them" -- cgit v1.3