sfeed_markread: simplify, always print all usage instructions - sfeed_curses - sfeed curses UI (now part of sfeed, development is in sfeed)
(HTM) git clone git://git.codemadness.org/sfeed_curses
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit fc93b4fee3ca1aa3430458e848d2f37ff010074d
(DIR) parent e2a3071bb2729a3bc87db2322e351bc60fb4d9ff
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 24 Jul 2021 22:52:41 +0200
sfeed_markread: simplify, always print all usage instructions
Diffstat:
M sfeed_markread | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/sfeed_markread b/sfeed_markread
@@ -3,13 +3,13 @@
usage() {
echo "usage: $0 <read|unread> [urlfile]" >&2
+ echo "" >&2
+ echo "An urlfile must be set as a parameter or with the environment variable \$SFEED_URL_FILE" >&2
exit 1
}
urlfile="${2:-${SFEED_URL_FILE}}"
if test -z "${urlfile}"; then
- echo "An urlfile must be set as a parameter or with the environment variable \$SFEED_URL_FILE" >&2
- echo "" >&2
usage
fi