sfeed

simple feed reader - forked from git.codemadness.org/sfeed
git clone git://src.gearsix.net/sfeed
Log | Files | Refs | Atom | README | LICENSE

commit 46401ee96222562c1480fa4f5cad0b0db9e60e4a
parent e2e1f4fe6ae0fbeb2b9443507d97afd2015dbe58
Author: GeaRSiX <gearsix.net>
Date:   Fri, 18 Sep 2020 15:41:21 +0100

simple fixes

Diffstat:
Msfeed-read | 27++++++++++++++++++---------
1 file changed, 18 insertions(+), 9 deletions(-)

diff --git a/sfeed-read b/sfeed-read @@ -7,7 +7,6 @@ engine=sfeed_html sfeed_files=~/.sfeed/feeds -sfeed_outdir=~/docs/sfeed sfeed_outfile=~/docs/sfeed/feed if [ ! -z $1 ]; then @@ -18,34 +17,44 @@ if [ ! -z $1 ]; then engine=sfeed_atom sfeed_outfile=$sfeed_outfile.atom ;; - "plain" | "Plain" | "plain-text" | "Plain-Text" | "plain-text" | "sfeed_plain") + "plain" | "Plain" | "plain-text" | "Plain-Text" | "sfeed_plain") engine=sfeed_plain sfeed_outfile=$sfeed_outfile.txt ;; - "frames" | "frame") + "frames" | "frame" | "sfeed_frames") engime=sfeed_frames ;; - "mbox" | "mail" | "mailbox") + "mbox" | "mail" | "mailbox" | "sfeed_mbox") engine=sfeed_mbox ;; - "twtxt") + "twtxt" | "sfeed_twtxt") engine=sfeed_twtxt sfeed_outfile=$sfeed_outfile.txt ;; - "gopher") + "gopher" | "sfeed_gopher") engine=sfeed_gopher sfeed_outfile=$sfeed_outfile.gopher ;; *) - echo "unrecognised engine, please select from $(/usr/local/bin/sfeed*)" + echo "invalid ENGINE \"$1\"!" + printf "\nsfeed-read [ENGINE]\n\n" + echo "ENGINE:" + echo " html, HTML, sfeed_html" + echo " atom, Atom, sfeed_atom" + echo " plain, Plain, plain-text, Plain-Text, sfeed_plain" + echo " frame, frames, sfeed_frames" + echo " mbox, mail, mailbox, sfeed_mbox" + echo " twtxt, sfeed_twtxt" + echo " gopher, sfeed_gopher." + exit ;; esac else sfeed_outfile=$sfeed_outfile.html fi -if [ ! -e $sfeed_outdir ]; then - mkdir -pv $sfeed_outdir +if [ ! -e $(dirname $sfeed_outfile) ]; then + mkdir -pv $sfeed_outfile fi echo "updating feed..."