Compare commits

..

2 Commits

Author SHA1 Message Date
rdelaage
fc2756124e Merge cbe506b28a into 3b57602fe8 2023-08-05 10:01:59 -04:00
Romain de Laage
cbe506b28a Use options on exec command 2022-11-07 08:09:45 +01:00
3 changed files with 3 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ RUN go mod download
COPY . .
RUN go build
FROM restic/restic:0.16.0
FROM restic/restic:0.15.1
RUN apk add --no-cache rclone bash
COPY --from=builder /app/autorestic /usr/bin/autorestic
ENTRYPOINT []

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)

View File

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