mirror of
https://github.com/raspberrypi/rpi-eeprom.git
synced 2026-01-20 21:13:36 +08:00
revert machine output exit code to string
This commit is contained in:
@@ -454,12 +454,12 @@ checkVersion()
|
|||||||
if [ "${BOOTLOADER_UPDATE_VERSION}" -gt "${BOOTLOADER_CURRENT_VERSION}" ]; then
|
if [ "${BOOTLOADER_UPDATE_VERSION}" -gt "${BOOTLOADER_CURRENT_VERSION}" ]; then
|
||||||
echo "*** UPDATE REQUIRED ***"
|
echo "*** UPDATE REQUIRED ***"
|
||||||
printVersions
|
printVersions
|
||||||
write_status_info "${EXIT_UPDATE_REQUIRED}"
|
write_status_info "EXIT_UPDATE_REQUIRED"
|
||||||
exit ${EXIT_UPDATE_REQUIRED}
|
exit ${EXIT_UPDATE_REQUIRED}
|
||||||
else
|
else
|
||||||
echo "Bootloader EEPROM is up to date"
|
echo "Bootloader EEPROM is up to date"
|
||||||
printVersions
|
printVersions
|
||||||
write_status_info "${EXIT_SUCCESS}"
|
write_status_info "EXIT_SUCCESS"
|
||||||
exit ${EXIT_SUCCESS}
|
exit ${EXIT_SUCCESS}
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@@ -485,7 +485,7 @@ EOF
|
|||||||
else
|
else
|
||||||
cat > "${MACHINE_OUTPUT}" <<EOF
|
cat > "${MACHINE_OUTPUT}" <<EOF
|
||||||
{
|
{
|
||||||
"EXITCODE": ${exit_code},
|
"EXITCODE": "${exit_code}",
|
||||||
"BOOTLOADER_CURRENT": ${bootloader_cur:-0},
|
"BOOTLOADER_CURRENT": ${bootloader_cur:-0},
|
||||||
"BOOTLOADER_LATEST": ${bootloader_new:-0},
|
"BOOTLOADER_LATEST": ${bootloader_new:-0},
|
||||||
"VL805_CURRENT": "${vl805_cur}",
|
"VL805_CURRENT": "${vl805_cur}",
|
||||||
|
|||||||
Reference in New Issue
Block a user