mirror of
https://github.com/Slug-Boi/cocommit.git
synced 2026-05-13 20:55:47 +00:00
refactor: change bat check to be on version flag for better cross platform compatability
This commit is contained in:
+1
-1
@@ -39,7 +39,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)
|
||||
|
||||
Reference in New Issue
Block a user