substitute $HOME/.config with $XDG_CONFIG_HOME

This commit is contained in:
Dennis Lee
2020-04-04 12:45:33 -07:00
parent 4f496fa189
commit fa67562835
4 changed files with 13 additions and 13 deletions

View File

@@ -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="$HOME/.config/newsboat/urls"
RSSFILE="$XDG_CONFIG_HOME/newsboat/urls"
if awk '{print $1}' "$RSSFILE" | grep "^$1$" >/dev/null; then
notify-send "You already have this RSS feed."
else