diff --git a/internal/location.go b/internal/location.go index 01c95c6..aaac32f 100644 --- a/internal/location.go +++ b/internal/location.go @@ -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 }