1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-25 05:52:50 -05:00

matugen: fix skip

This commit is contained in:
bbedward
2025-12-29 17:46:32 -05:00
parent 2127fc339a
commit 9501d66af6

View File

@@ -331,7 +331,7 @@ func appendConfig(opts *Options, cfgFile *os.File, checkCmd []string, fileName s
if _, err := os.Stat(configPath); err != nil {
return
}
if !utils.AnyCommandExists(checkCmd...) {
if len(checkCmd) > 0 && !utils.AnyCommandExists(checkCmd...) {
return
}
data, err := os.ReadFile(configPath)
@@ -347,7 +347,7 @@ func appendTerminalConfig(opts *Options, cfgFile *os.File, tmpDir string, checkC
if _, err := os.Stat(configPath); err != nil {
return
}
if !utils.AnyCommandExists(checkCmd...) {
if len(checkCmd) > 0 && !utils.AnyCommandExists(checkCmd...) {
return
}
data, err := os.ReadFile(configPath)