sb-news (393B) - View raw
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16#!/bin/sh case $BLOCK_BUTTON in 1) setsid "$TERMINAL" -T newsraft -e newsraft >/dev/null 2>&1 ;; 2) setsid -f newsup >/dev/null && exit ;; 8) setsid -f "$TERMINAL" -e "$EDITOR" "$0" >/dev/null 2>&1 ;; esac if [ ! -f /tmp/newsupdate ]; then count=$(newsraft -e print-unread-items-count) if [ "$count" != 0 ]; then printf "%s\n" "$count" fi else cat /tmp/newsupdate 2>/dev/null fi