summaryrefslogtreecommitdiff
path: root/rssadd
diff options
context:
space:
mode:
authorfilip <“filip.rabiega@gmail.com”>2025-10-10 19:25:25 +0200
committerfilip <“filip.rabiega@gmail.com”>2025-10-10 19:25:25 +0200
commit7f6189dcbed755af34e222237b8cfa8b1f903696 (patch)
tree142874823cfcf5df3e2b5a54d48b23ea8e2a6c03 /rssadd
parent807de46d3a3cbef9a3c3c104f6db87b142e6eed5 (diff)
downloadchadscripts-7f6189dcbed755af34e222237b8cfa8b1f903696.tar.gz
chadscripts-7f6189dcbed755af34e222237b8cfa8b1f903696.tar.bz2
chadscripts-7f6189dcbed755af34e222237b8cfa8b1f903696.zip
used shfmt -s
Diffstat (limited to 'rssadd')
-rwxr-xr-xrssadd2
1 files changed, 1 insertions, 1 deletions
diff --git a/rssadd b/rssadd
index 6fa8718..bf39558 100755
--- a/rssadd
+++ b/rssadd
@@ -4,7 +4,7 @@ if echo "$1" | grep -q "https*://\S\+\.[A-Za-z]\+\S*"; then
url="$1"
else
url="$(grep -Eom1 '<[^>]+(rel="self"|application/[a-z]+\+xml)[^>]+>' "$1" |
- grep -o "https?://[^\" ]")"
+ grep -o 'https?://[^" ]')"
echo "$url" | grep -q "https*://\S\+\.[A-Za-z]\+\S*" ||
notify-send "That doesn't look like a full URL." && exit 1