mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
修复上传 dts 中的条件错误
This commit is contained in:
parent
647b6024fd
commit
e6c78ce293
@ -1550,7 +1550,7 @@ function customDTS() {
|
|||||||
(cd "${TMP_UP_PATH}" && rz -be) || true
|
(cd "${TMP_UP_PATH}" && rz -be) || true
|
||||||
USER_FILE="$(find "${TMP_UP_PATH}" -type f | head -1)"
|
USER_FILE="$(find "${TMP_UP_PATH}" -type f | head -1)"
|
||||||
DTC_ERRLOG="/tmp/dtc.log"
|
DTC_ERRLOG="/tmp/dtc.log"
|
||||||
[ -z "${USER_FILE}" ] && dtc -q -I dts -O dtb "${USER_FILE}" >"test.dtb" 2>"${DTC_ERRLOG}"
|
[ -n "${USER_FILE}" ] && dtc -q -I dts -O dtb "${USER_FILE}" >"test.dtb" 2>"${DTC_ERRLOG}"
|
||||||
RET=$?
|
RET=$?
|
||||||
if [ -z "${USER_FILE}" ] || [ ${RET} -ne 0 ]; then
|
if [ -z "${USER_FILE}" ] || [ ${RET} -ne 0 ]; then
|
||||||
MSG="$(printf "%s\n%s:\n%s\n" "$(TEXT "Not a valid dts file, please try again!")" "$(TEXT "Error")" "$(cat "${DTC_ERRLOG}")")"
|
MSG="$(printf "%s\n%s:\n%s\n" "$(TEXT "Not a valid dts file, please try again!")" "$(TEXT "Error")" "$(cat "${DTC_ERRLOG}")")"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user