mirror of
https://github.com/raspberrypi/rpi-update.git
synced 2026-01-20 21:13:38 +08:00
Updates .firmware_revision when revision set at CLI
When revision was specified at the command line, $FW_PATH/.firmware_updating wasn't updated to reflect the change. Now $FW_PATH/.firmware_updating is always updated, so idempotency is achieved when using revision Id's at the command line. Fixes #84
This commit is contained in:
@@ -107,6 +107,8 @@ function finalise {
|
||||
if [[ ${FW_REV} == "" ]]; then
|
||||
echo " *** Storing current firmware revision"
|
||||
eval ${GITCMD} rev-parse master > "${FW_PATH}/.firmware_revision"
|
||||
else
|
||||
echo ${FW_REV} > "${FW_PATH}/.firmware_revision"
|
||||
fi
|
||||
echo " *** Syncing changes to disk"
|
||||
sync
|
||||
|
||||
Reference in New Issue
Block a user