From ac4c45791b790ae796009cfc47ffb099a988c3cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Schr=C3=B6tter?= Date: Tue, 25 Oct 2016 16:08:33 +0200 Subject: [PATCH] Ignore lines in domainfile starting with hash (#). --- checkssl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checkssl b/checkssl index 921b807..d6ec3d9 100755 --- a/checkssl +++ b/checkssl @@ -277,7 +277,7 @@ fi # check and inport file if specified on command line if [ $FILEARG ]; then if [ -f "$FILE" ]; then - cat "$FILE" >> "$LIST_OF_DOMAINS" + grep -v '^#' "$FILE" >> "$LIST_OF_DOMAINS" debug "added file $FILE to list of domains" else echo "$FILE not found"