From: Jay Freeman (saurik) Date: Thu, 2 Feb 2017 15:51:11 +0000 (-0800) Subject: Users do not actually have stat (which is stupid). X-Git-Tag: v1.1.28%b12^0 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/8c346d337c4b10013d1c81c39e4f3d526e9d3049 Users do not actually have stat (which is stupid). --- diff --git a/Library/firmware.sh b/Library/firmware.sh index c01c23ec..f7479ba8 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