]> git.saurik.com Git - cydia.git/blobdiff - Library/firmware.sh
On 64-bit some of these floats are really CGFloat.
[cydia.git] / Library / firmware.sh
index 6dcb4a21806246ed6a0b04b8709651246abbbf78..f7479ba8fcf4f7273d96bf227d4f24e12bffb26f 100755 (executable)
@@ -50,11 +50,10 @@ EOF
 }
 # }}}
 
-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)
+chmod 644 "${output}"
+xxxxxx=${output##*/status-tmp.}
+rm -f "${data}"/status-tmp.!("${xxxxxx}")
 
 {
 
@@ -144,8 +143,6 @@ rm -f 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