diff --git a/src/main.go b/src/main.go index 6c44b78..3b557cb 100644 --- a/src/main.go +++ b/src/main.go @@ -129,15 +129,13 @@ func main() { } fallbackToAscii := func(path *string) []string { + fmt.Println("chafa binary not found, chafa is the dependency of gogofetch, please install it") parts := strings.Split(*path, ".") if len(parts) > 1 { parts[len(parts)-1] = "txt" } *path = strings.Join(parts, ".") - if !strings.HasSuffix(*path, ".txt") { - fmt.Println("chafa binary not found, to print images please install chafa") - } return providers.SplitLines(providers.PrintAsciiLogo(*path)) }