Compare commits

..

2 Commits

Author SHA1 Message Date
rdelaage
1eb6838b33 Merge cbe506b28a into 530b1b646c 2023-10-02 03:03:58 -07:00
Romain de Laage
cbe506b28a Use options on exec command 2022-11-07 08:09:45 +01:00
2 changed files with 2 additions and 1 deletions

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)

View File

@@ -17,7 +17,7 @@ import (
"github.com/spf13/viper" "github.com/spf13/viper"
) )
const VERSION = "1.7.9" const VERSION = "1.7.7"
type OptionMap map[string][]interface{} type OptionMap map[string][]interface{}
type Options map[string]OptionMap type Options map[string]OptionMap