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:
Michel Blanc
2013-04-11 16:26:38 +02:00
parent 85b714f4fc
commit 57ea0f1c14

View File

@@ -107,7 +107,9 @@ function finalise {
if [[ ${FW_REV} == "" ]]; then
echo " *** Storing current firmware revision"
eval ${GITCMD} rev-parse master > "${FW_PATH}/.firmware_revision"
fi
else
echo ${FW_REV} > "${FW_PATH}/.firmware_revision"
fi
echo " *** Syncing changes to disk"
sync
}