Use options on exec command (#253)

Co-authored-by: Romain de Laage <romain.delaage@rdelaage.ovh>
This commit is contained in:
Romain de Laage 2024-02-15 14:23:43 +01:00 committed by GitHub
parent b5604b8b9f
commit 4848702929
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

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)