summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorJames Mills <1290234+prologic@users.noreply.github.com>2020-01-31 22:52:22 +1000
committerGitHub <noreply@github.com>2020-01-31 07:52:22 -0500
commitc47e7aac52246c0748f0e4c1b31d54641da3464e (patch)
tree6f92ccccca703fca026f4a144e4ce35c0cb6a7a2 /daemon
parent29d9b5e51603792ee27ef5a21f1de0ba8e130158 (diff)
Fixes a bug in DO_NOT_TRACK expression (#7929)
* Fixed bug in DO_NOT_TRACK expression * Fix kickstart-static64 checksum in docs. Co-authored-by: Austin S. Hemmelgarn <ahferroin7@gmail.com>
Diffstat (limited to 'daemon')
-rwxr-xr-xdaemon/anonymous-statistics.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/anonymous-statistics.sh.in b/daemon/anonymous-statistics.sh.in
index 841f9ea7cf..41b1c886c7 100755
--- a/daemon/anonymous-statistics.sh.in
+++ b/daemon/anonymous-statistics.sh.in
@@ -18,7 +18,7 @@ ACTION_DATA=$(echo "${ACTION_DATA}" | tr '"' "'")
# -------------------------------------------------------------------------------------------------
# check opt-out
-if [ -f "@configdir_POST@/.opt-out-from-anonymous-statistics" ] || [ ! "$DO_NOT_TRACK" -eq 0 ] || [ -n "$DO_NOT_TRACK" ]; then
+if [ -f "@configdir_POST@/.opt-out-from-anonymous-statistics" ] || [ ! "${DO_NOT_TRACK:-0}" -eq 0 ] || [ -n "$DO_NOT_TRACK" ]; then
exit 0
fi