commit 3218b32fb81b25fa54d3ce1afe096b13340a074a
parent f682d95808044ed639ac667b2c2d9a42c8d9fda0
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Tue, 16 Jun 2020 22:05:47 +0200
Fix argument check
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.local/bin/addfeed b/.local/bin/addfeed
@@ -2,7 +2,8 @@
sfeedrc=/var/sfeed/sfeedrc
if [ $# -ne 2 ]; then
- printf 'usage: %s feedname url\n' "${0##*/}"
+ printf 'usage: %s feedname url\n' "${0##*/}" >&2
+ exit 1
fi
if [ "$(hostname)" != "adamsgaard" ]; then