mirror of
https://github.com/cupcakearmy/autorestic.git
synced 2024-12-22 08:16:25 +00:00
validate and show cwd
This commit is contained in:
parent
b9b8857bf4
commit
7bebd04482
@ -132,8 +132,15 @@ func (l Location) Backup(cron bool) []error {
|
||||
Command: "bash",
|
||||
}
|
||||
|
||||
if err := l.validate(); err != nil {
|
||||
errors = append(errors, err)
|
||||
colors.Error.Print(err)
|
||||
goto after
|
||||
}
|
||||
|
||||
if t == TypeLocal {
|
||||
dir, _ := GetPathRelativeToConfig(l.From)
|
||||
colors.Faint.Printf("Executing under: \"%s\"\n", dir)
|
||||
options.Dir = dir
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user