summaryrefslogtreecommitdiff
path: root/ar/.local/bin/rssadd
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-28 19:03:01 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-28 19:03:01 +0900
commitcbd1d349a511da7a861540a5d6ea954d4d06871b (patch)
tree92b932d351a9474e7fd0f12c6c973274daaaa0d9 /ar/.local/bin/rssadd
parent74cb5de14fc06fe97b6fc306f6176f7d6b467b6b (diff)
updates
Diffstat (limited to 'ar/.local/bin/rssadd')
-rwxr-xr-xar/.local/bin/rssadd6
1 files changed, 3 insertions, 3 deletions
diff --git a/ar/.local/bin/rssadd b/ar/.local/bin/rssadd
index 9e68650..a49c5f8 100755
--- a/ar/.local/bin/rssadd
+++ b/ar/.local/bin/rssadd
@@ -10,9 +10,9 @@ else
notify-send "That doesn't look like a full URL." && exit 1
fi
-RSSFILE="${XDG_CONFIG_HOME:-${HOME}/.config}/newsboat/urls"
-if awk '{print $1}' "$RSSFILE" | grep "^$url$" >/dev/null; then
+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