Use restic version of host system in Docker container

This commit is contained in:
Christoph Loy
2022-09-04 11:05:10 +02:00
parent 6990bf6adc
commit b11e4a2875
2 changed files with 14 additions and 1 deletions

View File

@@ -21,6 +21,10 @@ func CheckIfResticIsCallable() bool {
return CheckIfCommandIsCallable(flags.RESTIC_BIN)
}
func GetResticPath() (result string, err error) {
return exec.LookPath(flags.RESTIC_BIN)
}
type ExecuteOptions struct {
Command string
Envs map[string]string