Minor corrections in help

This commit is contained in:
2024-11-01 15:27:13 +01:00
parent b0d2988961
commit 6ed2589676

View File

@@ -27,7 +27,7 @@ urls=()
port=443 port=443
# Days left before notification # Days left before notification
nday=15 nday=15
# Choose the notification # Choose the notification (pushover or gotify)
notif="pushover" notif="pushover"
not_required_domains="$HOME/Documents/Scripts/pihole/sync_pihole_lan.sh" not_required_domains="$HOME/Documents/Scripts/pihole/sync_pihole_lan.sh"
@@ -90,8 +90,8 @@ display_help() {
echo "Usage: $0 " >&2 echo "Usage: $0 " >&2
echo echo
echo -e "${bold}urls_check.sh${reset} will read a list of urls in ${underline}urls_list.txt${reset} file, then return the status code for each url." echo -e "${bold}urls_check.sh${reset} will read a list of urls in ${underline}urls_list.txt${reset} file, then return the status code for each url."
echo -e "If the site is up (status code: 200, 301, 302, 303, 307), then certificate information will be displayed." echo -e "If the site is ${green}up${reset} (status code: 200, 301, 302, 303, 307), then certificate information will be displayed."
echo -e "If the site is down or the certificate is outdated, a Pushover (or Gotify) notification will be sent." echo -e "If the site is ${red}down${reset} or the certificate is outdated, a Pushover (or Gotify) notification will be sent."
echo -e "${underline}status.txt${reset} give description and a link to Mozilla for each status code." echo -e "${underline}status.txt${reset} give description and a link to Mozilla for each status code."
echo -e "${bold}showcert${reset} is required to check certificate ${italic}(pip install showcert)${reset}. If not, ${bold}openssl${reset} will be used." echo -e "${bold}showcert${reset} is required to check certificate ${italic}(pip install showcert)${reset}. If not, ${bold}openssl${reset} will be used."
echo echo
@@ -99,6 +99,12 @@ display_help() {
echo -e " -u <url> | --url <url> Check the url passed as argument." echo -e " -u <url> | --url <url> Check the url passed as argument."
echo -e " -h | --help Display this help." echo -e " -h | --help Display this help."
echo echo
echo -e "${bold}urls_list.txt${reset}"
echo -e "https://subdomain1.domain.com"
echo -e "#https://subdomain2.domain.com"
echo -e "https://www.domain2.com"
echo -e "${italic}Add a # to ignore url${reset}"
echo
# echo some stuff here for the -a or --add-options # echo some stuff here for the -a or --add-options
exit 1 exit 1
} }