From 9fe6802122f6e0392c7fe20eefd30437771d7f8e Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Wed, 8 Apr 2020 19:10:00 -0400 Subject: oops for config --- .local/bin/rssadd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.local/bin/rssadd') diff --git a/.local/bin/rssadd b/.local/bin/rssadd index 924ee52..2ce421b 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:$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 -- cgit v1.3.1