summaryrefslogtreecommitdiff
path: root/rssadd
diff options
context:
space:
mode:
authorfilip <“filip.rabiega@gmail.com”>2026-01-21 23:42:15 +0100
committerfilip <“filip.rabiega@gmail.com”>2026-01-21 23:42:15 +0100
commit17df35dc088c9b1b159c2b78d8330fa9cc9a672a (patch)
tree052205953f7f11a9ea847a9b4d238f6acdbc25b8 /rssadd
parentd127601c83c1a30063b76eb89bf0d9a32ed435b9 (diff)
downloadchadscripts-17df35dc088c9b1b159c2b78d8330fa9cc9a672a.tar.gz
chadscripts-17df35dc088c9b1b159c2b78d8330fa9cc9a672a.tar.bz2
chadscripts-17df35dc088c9b1b159c2b78d8330fa9cc9a672a.zip
reformat most scripts
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*" ||