refactor: change bat check to be on version flag for better cross platform compatability

This commit is contained in:
Slug-Boi
2024-11-01 09:13:28 +01:00
parent 6ef0ad3b5b
commit 49692669b8
+1 -1
View File
@@ -39,7 +39,7 @@ func UsersCmd() *cobra.Command {
println(strings.Join(user_sb, "")) println(strings.Join(user_sb, ""))
os.Exit(0) os.Exit(0)
} }
bat_check := exec.Command("which", "bat") bat_check := exec.Command("bat","--version")
out, _ := bat_check.CombinedOutput() out, _ := bat_check.CombinedOutput()
if string(out) == "" { if string(out) == "" {
tui.Entry_US(authorfile) tui.Entry_US(authorfile)