Use options on exec command

This commit is contained in:
Romain de Laage 2022-11-07 08:09:45 +01:00
parent d0d2fcf0f2
commit cbe506b28a
No known key found for this signature in database
GPG Key ID: 534845FADDF0C329

View File

@ -143,6 +143,7 @@ func (b Backend) Exec(args []string) error {
return err return err
} }
options := ExecuteOptions{Envs: env} options := ExecuteOptions{Envs: env}
args = append(args, combineBackendOptions("exec", b)...)
_, out, err := ExecuteResticCommand(options, args...) _, out, err := ExecuteResticCommand(options, args...)
if err != nil { if err != nil {
colors.Error.Println(out) colors.Error.Println(out)