Compare commits

..

2 Commits

Author SHA1 Message Date
Romain de Laage
293b74c001 Merge cbe506b28a into 78b0db50e0 2023-03-25 07:10:06 +09:00
Romain de Laage
cbe506b28a Use options on exec command 2022-11-07 08:09:45 +01:00
5 changed files with 4 additions and 7 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

@@ -55,7 +55,7 @@ func initConfig() {
viper.SetConfigFile(cfgFile)
viper.AutomaticEnv()
if viper.ConfigFileUsed() == "" {
colors.Error.Printf("cannot read config file %s\n", cfgFile)
colors.Error.Println("cannot read config file %s\n", cfgFile)
os.Exit(1)
}
} else {

View File

@@ -24,10 +24,6 @@ You can download the right binary from the release page and simply copy it to `/
If you are on macOS you can install through brew: `brew install autorestic`.
### Fedora
Fedora users can install the [autorestic](https://src.fedoraproject.org/rpms/autorestic/) package with `dnf install autorestic`.
### AUR
~~If you are on Arch there is an [AUR Package](https://aur.archlinux.org/packages/autorestic-bin/) (looking for maintainers).~~ - Deprecated

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