validate and show cwd

pull/103/head
cupcakearmy 3 years ago
parent b9b8857bf4
commit 7bebd04482
No known key found for this signature in database
GPG Key ID: D28129AE5654D9D9

@ -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…
Cancel
Save