aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-11-04 08:19:05 +0000
committerng0 <ng0@n0.is>2019-11-04 08:19:05 +0000
commit0a289a520860b0fa4790ad0466d45da8130c622c (patch)
treedfb2b36f69c739f736606532501c9d8b1bfec26e
parent1fc665964811a92c00cc5b67f804a12026bad108 (diff)
downloadwww-0a289a520860b0fa4790ad0466d45da8130c622c.tar.gz
www-0a289a520860b0fa4790ad0466d45da8130c622c.zip
rssg: opportunistic fix 2
-rwxr-xr-xrssg3
1 files changed, 1 insertions, 2 deletions
diff --git a/rssg b/rssg
index 641068f6..81beb1c9 100755
--- a/rssg
+++ b/rssg
@@ -119,8 +119,7 @@ rel_to_abs_urls() {
119 119
120 120
121date_rfc_822() { 121date_rfc_822() {
122 DATETEST=$(date -j | grep "invalid option") 122 if date --version >/dev/null 2>&1; then
123 if test -n "$DATETEST"; then
124 date '+%a, %d %b %Y %H:%M:%S %z' \ 123 date '+%a, %d %b %Y %H:%M:%S %z' \
125 "$(echo "$1"| tr -cd '[:digit:]')0000" 124 "$(echo "$1"| tr -cd '[:digit:]')0000"
126 else 125 else