mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 13:32:50 -05:00
matugen: fix skip
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user