Prevent flashing older builds

This commit is contained in:
2020-05-21 10:33:42 -04:00
parent 4b05570ce3
commit 7f9bb3bee8

View File

@@ -354,9 +354,10 @@ __main() {
installPrerequisites
acquireImageBuilder
extractImageBuilder
makeImage
[[ -n $_ssh_upgrade_path ]] && sshUpgrade
[[ -n $_flash_dev ]] && flashImage
if makeImage; then
[[ -n $_ssh_upgrade_path ]] && sshUpgrade
[[ -n $_flash_dev ]] && flashImage
fi
}
__main "$@"