aboutsummaryrefslogtreecommitdiff
path: root/env/.local/bin/system/start-scripts/newsboat-fetch.sh
diff options
context:
space:
mode:
Diffstat (limited to 'env/.local/bin/system/start-scripts/newsboat-fetch.sh')
-rwxr-xr-xenv/.local/bin/system/start-scripts/newsboat-fetch.sh4
1 files changed, 2 insertions, 2 deletions
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"