summaryrefslogtreecommitdiffstats
path: root/.local/bin/rssadd
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/rssadd')
-rwxr-xr-x.local/bin/rssadd2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/rssadd b/.local/bin/rssadd
index 9dcdd7b..924ee52 100755
--- a/.local/bin/rssadd
+++ b/.local/bin/rssadd
@@ -2,7 +2,7 @@
! echo "$1" | grep "https*://\S\+\.[A-Za-z]\+\S*" >/dev/null &&
notify-send "That doesn't look like a full URL." && exit
-RSSFILE="$XDG_CONFIG_HOME/newsboat/urls"
+RSSFILE="${XDG_CONFIG_HOME:$HOME/.config}/newsboat/urls"
if awk '{print $1}' "$RSSFILE" | grep "^$1$" >/dev/null; then
notify-send "You already have this RSS feed."
else