You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 9, 2018. It is now read-only.
Copy file name to clipboardExpand all lines: do-cli-speedtest
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -83,6 +83,13 @@ fi
83
83
84
84
if [[ $disallowTracking==false ]] || [[ $disallowTracking=="" ]]
85
85
then
86
+
which curl > /dev/null
87
+
checkForCurl=$?
88
+
if [[ "$checkForCurl"!="0" ]]
89
+
then
90
+
echo"$fail You need curl to enable tracking."
91
+
exit 1
92
+
fi
86
93
echo"$notice You have selected not to opt out of tracking. Tracking only counts the number of tests and the test type (and the IP will be logged in the access log, etc)."
87
94
echo"$notice The tracking URL is not called until the very end of the test. If you would like to opt out now, you can simply cancel this script and re-run it with the disallowTracking variable set. See README.md on Github for more information."
0 commit comments