oops for config

This commit is contained in:
Luke Smith
2020-04-08 19:10:00 -04:00
parent 7f334ff4b9
commit 9fe6802122
19 changed files with 57 additions and 57 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="${XDG_CONFIG_HOME:$HOME/.config}/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