Use options on exec command (#253)

Co-authored-by: Romain de Laage <romain.delaage@rdelaage.ovh>
pull/339/head^2
rdelaage 9 months ago committed by GitHub
parent b5604b8b9f
commit 4848702929
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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)

Loading…
Cancel
Save