summaryrefslogtreecommitdiff
path: root/rssadd
diff options
context:
space:
mode:
authorfilip <“filip.rabiega@gmail.com”>2025-10-10 19:10:02 +0200
committerfilip <“filip.rabiega@gmail.com”>2025-10-10 19:10:02 +0200
commit807de46d3a3cbef9a3c3c104f6db87b142e6eed5 (patch)
tree61a1a9bc26daad623ce6c04bb66ae39133ef0261 /rssadd
parent08204fc9b9f63015a1dc083b471c6839818eeb59 (diff)
downloadchadscripts-807de46d3a3cbef9a3c3c104f6db87b142e6eed5.tar.gz
chadscripts-807de46d3a3cbef9a3c3c104f6db87b142e6eed5.tar.bz2
chadscripts-807de46d3a3cbef9a3c3c104f6db87b142e6eed5.zip
used shfmt
Diffstat (limited to 'rssadd')
-rwxr-xr-xrssadd4
1 files changed, 2 insertions, 2 deletions
diff --git a/rssadd b/rssadd
index 910fca3..6fa8718 100755
--- a/rssadd
+++ b/rssadd
@@ -1,6 +1,6 @@
#!/bin/sh
-if echo "$1" | grep -q "https*://\S\+\.[A-Za-z]\+\S*" ; then
+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" |
@@ -14,5 +14,5 @@ RSSFILE="${XDG_CONFIG_HOME:-$HOME/.config}/newsboat/urls"
if awk '{print $1}' "$RSSFILE" | grep "^$url$" >/dev/null; then
notify-send "You already have this RSS feed."
else
- echo "$url" >> "$RSSFILE" && notify-send "RSS feed added."
+ echo "$url" >>"$RSSFILE" && notify-send "RSS feed added."
fi