refactor: change bat command to version call for checking

This commit is contained in:
Slug-Boi
2024-10-28 12:19:33 +01:00
parent 675a352342
commit 246db95414
+1 -1
View File
@@ -38,7 +38,7 @@ func UsersCmd() *cobra.Command {
println(strings.Join(user_sb, ""))
os.Exit(0)
}
bat_check := exec.Command("which", "bat")
bat_check := exec.Command("bat", "--version")
out, _ := bat_check.CombinedOutput()
if string(out) == "" {
tui.Entry_US(authorfile)