X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/b1b79d408f3cda3965b8d9087c334f26b7603208..367a112d938db5c80814b42c428b517e4a65efd9:/Library/firmware.sh diff --git a/Library/firmware.sh b/Library/firmware.sh index a5bdd4df..f7479ba8 100755 --- a/Library/firmware.sh +++ b/Library/firmware.sh @@ -50,9 +50,8 @@ EOF } # }}} -before=$(stat -c '%i-%Y' "${status}") - output=$(mktemp "${data}"/status-tmp.XXXXXX) +chmod 644 "${output}" xxxxxx=${output##*/status-tmp.} rm -f "${data}"/status-tmp.!("${xxxxxx}") @@ -144,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