tSkip ^L in print and fix downloaddir in rppoddl. - rohrpost - A commandline mail client to change the world as we see it.
 (HTM) git clone git://r-36.net/rohrpost
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit 2e0382149c34a197505257418b5660ff98ea9686
 (DIR) parent 8609a6a20e2133067c19e86b3222eac0a0ff9153
 (HTM) 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(-)
       ---
 (DIR) diff --git a/bin/rppoddl b/bin/rppoddl
       t@@ -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
       t@@ -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
        
 (DIR) diff --git a/bin/rpprint b/bin/rpprint
       t@@ -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