Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion reflash/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,12 @@ func parseXzUncompressedSize(out string) int {
func lastLine(file string) string {
out, err := exec.Command("tail", "-n1", file).Output()
if err != nil {
log.Fatal(err)
// Expected before the progress file exists yet (e.g. right at
// the start of a flash, or in tests) - the caller already
// falls back to 0 on a non-numeric result. log.Fatal here
// used to kill the whole process on this, not just this one
// read.
return ""
}
return strings.TrimSpace(string(out[:]))
}
Expand Down
Loading