rohrpost

A commandline mail client to change the world as we see it.
git clone git://r-36.net/rohrpost
Log | Files | Refs | LICENSE

commit 2e0382149c34a197505257418b5660ff98ea9686
parent 8609a6a20e2133067c19e86b3222eac0a0ff9153
Author: Christoph Lohmann <20h@r-36.net>
Date:   Sun, 13 Oct 2013 14:49:44 +0200

Skip ^L in print and fix downloaddir in rppoddl.

Diffstat:
bin/rppoddl | 5++---
bin/rpprint | 3++-
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/bin/rppoddl b/bin/rppoddl @@ -1,8 +1,8 @@ #!/bin/sh -if [ -z "$DOWNLOADER" ] || [ -z "$DOWNLOADDIR" ]; +if [ -z "$DOWNLOADER" ]; then - echo "You need to set \$DOWNLOADER and \$DOWNLOADDIR" \ + echo "You need to set \$DOWNLOADER" \ " for downloading the podcast." exit 1 fi @@ -11,7 +11,6 @@ url=$(rpview "$@" | awk '/Enclosure:/ {print $2}' | tr -d '\r') for i in $url do echo $i - cd $DOWNLOADDIR $DOWNLOADER "$i" done diff --git a/bin/rpprint b/bin/rpprint @@ -6,6 +6,7 @@ if [ -t 1 -a -x "$TMPL" ]; then rohrpost rpview "$@" | $TMPL else - rohrpost rpview "$@" + # skip appeneded ^L + rohrpost rpview "$@" | head -n -1 fi