}
# }}}
-before=$(stat -c '%i-%Y' status)
+before=$(stat -c '%i-%Y' "${status}")
-output=$(mktemp status-tmp.XXXXXX)
-xxxxxx=${output##status-tmp.}
-rm -f status-tmp.!("${xxxxxx}")
+output=$(mktemp "${data}"/status-tmp.XXXXXX)
+xxxxxx=${output##*/status-tmp.}
+rm -f "${data}"/status-tmp.!("${xxxxxx}")
{
} >"${output}"
# XXX: this is a poor replacement for flock
-test "${before}" = "$(stat -c '%i-%Y' status)"
+test "${before}" = "$(stat -c '%i-%Y' "${status}")"
mv -f "${output}" "${status}"
if [[ ${cpu} == arm || ${cpu} == arm64 ]]; then