dont duplicate global flags (#187)

This commit is contained in:
2022-04-27 00:22:14 +02:00
committed by GitHub
parent 38e0f228d1
commit 1bb9973e90
2 changed files with 5 additions and 9 deletions

View File

@@ -81,7 +81,7 @@ func ExecuteCommand(options ExecuteOptions, args ...string) (int, string, error)
func ExecuteResticCommand(options ExecuteOptions, args ...string) (int, string, error) {
options.Command = RESTIC_BIN
var c = GetConfig()
var optionsAsString = getOptions(c.Global, "")
var optionsAsString = getOptions(c.Global, []string{"all"})
args = append(optionsAsString, args...)
return ExecuteCommand(options, args...)
}