mirror of
https://github.com/jaygooby/ttfb.sh
synced 2025-12-09 23:47:21 +01:00
Fix the failing tests for logging
This commit is contained in:
8
ttfb
8
ttfb
@@ -156,6 +156,14 @@ fi
|
||||
|
||||
for URL in $URLS; do
|
||||
|
||||
if [ $DEBUG -eq 1 ]; then
|
||||
if [ ${#@} -gt 1 ]; then
|
||||
LOGFILE="${URL//[^[:alnum:]]/_}"
|
||||
options+=(-D "${LOG_DIRECTORY}/${LOGFILE}-${LOG}")
|
||||
else
|
||||
options+=(-D "${LOG_DIRECTORY}/${LOG}")
|
||||
fi
|
||||
fi
|
||||
# if we're checking more than one url
|
||||
# output the url on the results line
|
||||
if [ ${#@} -gt 1 ]; then
|
||||
|
||||
Reference in New Issue
Block a user