tRename rpdownload to rpdl. - 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 64f5d81b5f7a51f072db45d8662563e6d8ec7307
(DIR) parent d72c582b14c69bcf5efa2e812a88e0dcf0a4dde9
(HTM) Author: Christoph Lohmann <20h@r-36.net>
Date: Sat, 27 Feb 2021 14:29:06 +0100
Rename rpdownload to rpdl.
Diffstat:
bin/rpdl | 2 --
bin/rpdl | 23 +++++++++++++++++++++++
bin/rpdownload | 23 -----------------------
3 files changed, 23 insertions(+), 25 deletions(-)
---
(DIR) diff --git a/bin/rpdl b/bin/rpdl
t@@ -1 +0,0 @@
-rpdownload
-\ No newline at end of file
(DIR) diff --git a/bin/rpdl b/bin/rpdl
t@@ -0,0 +1,23 @@
+#!/bin/sh
+
+if [ -z "$DOWNLOADER" ];
+then
+ echo "\$DOWNLOADER should be set for downloading content."
+ exit 1
+fi
+
+if [ $# -lt 1 ];
+then
+ echo "usage: `basename $0` msgid"
+ exit 1
+fi
+
+msgid="$*"
+
+url=$(rpview -- $msgid | awk '/URL:/ {print $2}' | tr -d '\r')
+for i in $url
+do
+ echo $i
+ $DOWNLOADER "$i"
+done
+
(DIR) diff --git a/bin/rpdownload b/bin/rpdownload
t@@ -1,23 +0,0 @@
-#!/bin/sh
-
-if [ -z "$DOWNLOADER" ];
-then
- echo "\$DOWNLOADER should be set for downloading content."
- exit 1
-fi
-
-if [ $# -lt 1 ];
-then
- echo "usage: `basename $0` msgid"
- exit 1
-fi
-
-msgid="$*"
-
-url=$(rpview -- $msgid | awk '/URL:/ {print $2}' | tr -d '\r')
-for i in $url
-do
- echo $i
- $DOWNLOADER "$i"
-done
-