1
0
mirror of https://github.com/jaygooby/ttfb.sh synced 2025-12-10 07:57:21 +01:00

Fix the failing tests for logging

This commit is contained in:
Jay Caines-Gooby
2022-07-04 18:57:29 +01:00
parent ab5df2edac
commit 9e4514e829

8
ttfb
View File

@@ -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