Use options on exec command (#253)

Co-authored-by: Romain de Laage <romain.delaage@rdelaage.ovh>
This commit is contained in:
rdelaage
2024-02-15 14:23:43 +01:00
committed by GitHub
parent b5604b8b9f
commit 4848702929

View File

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