hosts list
array in source code or external file
This commit is contained in:
@@ -46,11 +46,14 @@ ScriptArgs=( "$@" )
|
||||
ScriptPath="$(readlink -f "$0")" # /Users/bruno/Documents/Scripts/bashbirds/bashbirds.sh
|
||||
ScriptWorkDir="$(dirname "$ScriptPath")" # /Users/bruno/Documents/Scripts/bashbirds
|
||||
|
||||
# Domains to check
|
||||
### Domains to check ###
|
||||
#hosts=("domain.com")
|
||||
if [ -f "$ScriptWorkDir/validity_domains.txt" ]; then
|
||||
hosts=("")
|
||||
if [ ${#hosts[@]} -eq 0 ]; then
|
||||
if [ -f "$ScriptWorkDir/validity_domains.txt" ]; then
|
||||
readarray -t hosts < "$ScriptWorkDir/validity_domains.txt"
|
||||
else echo -e "${red}No domain to check !${reset}"
|
||||
else echo -e "${red}No domain to check !${reset}"
|
||||
fi
|
||||
fi
|
||||
port=443
|
||||
# Days left before notification
|
||||
|
||||
Reference in New Issue
Block a user