diff options
author | Case Duckworth | 2022-07-19 13:09:54 -0500 |
---|---|---|
committer | Case Duckworth | 2022-07-19 13:09:54 -0500 |
commit | b58a56ddac19ba659edc5dc62958103471f52a24 (patch) | |
tree | b543077fb5bc76890630aaaef4099171bfbc545b /sfeed_unsubscribe.sh | |
parent | Add unsubscribe functionality (diff) | |
download | sfeed-b58a56ddac19ba659edc5dc62958103471f52a24.tar.gz sfeed-b58a56ddac19ba659edc5dc62958103471f52a24.zip |
Fix typo
Diffstat (limited to 'sfeed_unsubscribe.sh')
-rwxr-xr-x | sfeed_unsubscribe.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sfeed_unsubscribe.sh b/sfeed_unsubscribe.sh new file mode 100755 index 0000000..eec81ce --- /dev/null +++ b/sfeed_unsubscribe.sh | |||
@@ -0,0 +1,12 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | rmfeed() { | ||
4 | feed="$(echo "$1" | tr '/' '_')" | ||
5 | rm "${sfeedpath}/${feed}" | ||
6 | } | ||
7 | |||
8 | alias feed=rmfeed | ||
9 | |||
10 | . "$1" | ||
11 | |||
12 | unsubscribe_feeds | ||