diff options
author | Case Duckworth | 2022-07-19 13:07:46 -0500 |
---|---|---|
committer | Case Duckworth | 2022-07-19 13:07:46 -0500 |
commit | db65a9ac6095c0536d796e53e15abe45649a92ec (patch) | |
tree | 4d336df398907e35789df2f8680a0ed4242274d7 /runsfeed | |
parent | Add runcmd (diff) | |
download | sfeed-db65a9ac6095c0536d796e53e15abe45649a92ec.tar.gz sfeed-db65a9ac6095c0536d796e53e15abe45649a92ec.zip |
Add unsubscribe functionality
Diffstat (limited to 'runsfeed')
-rwxr-xr-x | runsfeed | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/runsfeed b/runsfeed index 75b141b..3fc6ee6 100755 --- a/runsfeed +++ b/runsfeed | |||
@@ -52,13 +52,16 @@ main() { | |||
52 | log Done. | 52 | log Done. |
53 | } | 53 | } |
54 | 54 | ||
55 | update_urls() { | ||
56 | runcmd() { | 55 | runcmd() { |
57 | cmd="$(command -v "$1" || echo "./$1")" | 56 | cmd="$(command -v "$1" || echo "./$1")" |
58 | shift | 57 | shift |
59 | "$cmd" "$@" | 58 | "$cmd" "$@" |
60 | } | 59 | } |
61 | 60 | ||
61 | remove_unsubs() { | ||
62 | runcmd sfeed_unsubscribe.sh "$@" | ||
63 | } | ||
64 | |||
62 | update_urls() { | 65 | update_urls() { |
63 | runcmd sfeed_update_urls.sh "$@" | 66 | runcmd sfeed_update_urls.sh "$@" |
64 | } | 67 | } |