removed old --help

This commit is contained in:
Massimo Scagliola 2024-04-29 15:03:06 +02:00
parent 8702a76c06
commit 76e6d27d92
1 changed files with 0 additions and 10 deletions

View File

@ -1,13 +1,4 @@
#!/bin/sh
### $0
### Usage: ./$0 [-t] URL
###
### Downloads the RSS feed of the URL and checks the latest post.
### It provides a simple way to copy/paste the Title and Link of the post.
### Arguments:
### -t | --today Checks if the Publication Date of the post is Today.
### If not, it exits.
help() {
echo "Usage: $0 [-d] [-t VISIBILITY] [-h] URL"
echo ""
@ -95,7 +86,6 @@ if ! [[ $? == "0" ]]; then echo "Error."; cleanup 1; else echo "Done."; fi
grep -q '<rss' feed.xml
if ! [[ $? == "0" ]]; then echo "This is not a RSS feed. Exiting."; cleanup 1; fi
# Find 2nd clean title (1st post) and replaces / with \/
TITLE=$(awk '/<title>/{++n; if (n==2) {print; exit}}' feed.xml | sed 's/<title>//g; s/<\/title>//g; s/^ *//g')