diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2023-10-25 18:02:25 -0400 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2023-10-25 18:02:25 -0400 |
commit | cb1a51092d12db12f7ba29e57daed6d64b311d38 (patch) | |
tree | 3c4e0bf555d079b9bc4f04889aa2cc6bb4f91255 /.local/bin/rssadd | |
parent | 6312ef191a9ab7466ec72bb3aba7138816062c2f (diff) |
More cleanup
Diffstat (limited to '.local/bin/rssadd')
-rwxr-xr-x | .local/bin/rssadd | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/.local/bin/rssadd b/.local/bin/rssadd deleted file mode 100755 index 8822fc5..0000000 --- a/.local/bin/rssadd +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh -! 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" -if awk '{print $1}' "$RSSFILE" | grep "^$1$" >/dev/null; then - notify-send "You already have this RSS feed." -else - echo "$1" >> "$RSSFILE" && notify-send "RSS feed added." -fi |