Skip to content

Commit 276d133

Browse files
committed
Adding a debug mode
1 parent 9b2da85 commit 276d133

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

check_mixedcontent.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
#!/bin/bash
22

3+
if [[ $# -eq 2 && $2 -eq "debug" ]];
4+
then
5+
debug="true"
6+
else
7+
debug="false"
8+
fi
39
echo "Running mixed content report"
410
# e.g. arg could be _site for a jekyll site
5-
find $1 -name "*.html" | xargs phantomjs --web-security=false --disk-cache=true --ignore-ssl-errors=false --load-images=true --output-encoding=utf-8 report-mixed-content.js ;
11+
find $1 -name "*.html" | xargs phantomjs --debug=$debug --web-security=false --disk-cache=true --ignore-ssl-errors=false --load-images=true --output-encoding=utf-8 report-mixed-content.js ;
612
echo "report finsihed."

0 commit comments

Comments
 (0)