diff --git a/build/build_cows.go b/build/build_cows.go index f4a6d542..fbea162a 100644 --- a/build/build_cows.go +++ b/build/build_cows.go @@ -78,10 +78,14 @@ func convertPngToCow(sourceDirpath string, sourceFpath string, destDirpath strin // Can't be bothered resolving atm, so just skip past any failed conversions imgErr, converted := img2xterm(sourceFpath) if imgErr == nil { - err := os.WriteFile(destFpath, converted, 0644) - time.Sleep(0) - if err != nil { - log.Fatal(err) + if len(converted) == 0 { + fmt.Println("skipping empty conversion result", sourceFpath) + } else { + err := os.WriteFile(destFpath, converted, 0644) + time.Sleep(0) + if err != nil { + log.Fatal(err) + } } } pbar.Add(1) diff --git a/build/cows.gob b/build/cows.gob index e65f0fd5..6659c158 100644 Binary files a/build/cows.gob and b/build/cows.gob differ diff --git a/build/cows.tar.gz b/build/cows.tar.gz index a53eeb78..1cb34614 100644 Binary files a/build/cows.tar.gz and b/build/cows.tar.gz differ