File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ func (b *Backup) CanRun() error {
52
52
return fmt .Errorf ("the setting targetPath MUST exist within a backup configuration" )
53
53
}
54
54
// script must exist, having only script means this is handled in the script
55
- if b .ScriptPath == "" {
55
+ if b .ScriptPath == nil {
56
56
return fmt .Errorf ("the setting scriptPath must exist within a backup configuration" )
57
57
}
58
58
if ! b .ShouldRun () {
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ func TestCanRun(t *testing.T) {
68
68
}
69
69
err = bkpScriptPathMissing .CanRun ()
70
70
if err == nil {
71
+ t .Logf ("ScriptPath is %v" , bkpScriptPathMissing .ScriptPath )
71
72
t .Log ("Missing scriptPath has to fail function 'CanRun()'" )
72
73
t .Fail ()
73
74
}
You can’t perform that action at this time.
0 commit comments