From cb1a51092d12db12f7ba29e57daed6d64b311d38 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Wed, 25 Oct 2023 18:02:25 -0400 Subject: More cleanup --- .local/bin/rssadd | 9 --------- 1 file changed, 9 deletions(-) delete mode 100755 .local/bin/rssadd (limited to '.local/bin/rssadd') 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 -- cgit v1.2.3