From fb397912e43f2d13a42def8f3bc6845b480deb23 Mon Sep 17 00:00:00 2001 From: nekohepott Date: Wed, 17 Jun 2026 04:16:35 +0300 Subject: [PATCH] feat: warn user about chafa --- src/main.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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)) }