diff options
Diffstat (limited to 'rssadd')
-rwxr-xr-x | rssadd | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,6 +1,6 @@ #!/bin/sh -if echo "$1" | grep -q "https*://\S\+\.[A-Za-z]\+\S*" ; then +if echo "$1" | grep -q "https*://\S\+\.[A-Za-z]\+\S*"; then url="$1" else url="$(grep -Eom1 '<[^>]+(rel="self"|application/[a-z]+\+xml)[^>]+>' "$1" | @@ -14,5 +14,5 @@ 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 |