summaryrefslogtreecommitdiff
path: root/ar/.local/bin/rssadd
diff options
context:
space:
mode:
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