From 8c346d337c4b10013d1c81c39e4f3d526e9d3049 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 2 Feb 2017 07:51:11 -0800 Subject: Users do not actually have stat (which is stupid). --- Library/firmware.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Library/firmware.sh b/Library/firmware.sh index c01c23e..f7479ba 100755 --- a/Library/firmware.sh +++ b/Library/firmware.sh @@ -50,8 +50,6 @@ EOF } # }}} -before=$(stat -c '%i-%Y' "${status}") - output=$(mktemp "${data}"/status-tmp.XXXXXX) chmod 644 "${output}" xxxxxx=${output##*/status-tmp.} @@ -145,8 +143,6 @@ rm -f "${data}"/status-tmp.!("${xxxxxx}") } >"${output}" -# XXX: this is a poor replacement for flock -test "${before}" = "$(stat -c '%i-%Y' "${status}")" mv -f "${output}" "${status}" if [[ ${cpu} == arm || ${cpu} == arm64 ]]; then -- cgit v1.2.3