summaryrefslogtreecommitdiff
path: root/rssadd
diff options
context:
space:
mode:
Diffstat (limited to 'rssadd')
-rwxr-xr-xrssadd4
1 files changed, 2 insertions, 2 deletions
diff --git a/rssadd b/rssadd
index 86087f0..00e9c9d 100755
--- a/rssadd
+++ b/rssadd
@@ -2,9 +2,9 @@
# Add a new RSS feed
if echo "$1" | grep -q "https*://\S\+\.[A-Za-z]\+\S*"; then
- url="$1"
+ url="$1"
else
- url="$(grep -Eom1 '<[^>]+(rel="self"|application/[a-z]+\+xml)[^>]+>' "$1" |
+ url="$(grep -Eom1 '<[^>]+(rel="self"|application/[a-z]+\+xml)[^>]+>' "$1" |
grep -o 'https?://[^" ]')"
echo "$url" | grep -q "https*://\S\+\.[A-Za-z]\+\S*" ||