Skip to content

Commit

Permalink
fix: allow single files as sources
Browse files Browse the repository at this point in the history
fixes #25
  • Loading branch information
d-Rickyy-b committed Jul 4, 2021
1 parent 9604540 commit 620fd62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func (config *Config) validate() error {

for _, sourcePath := range unit.Sources {
// Each source path must be an existing directory!
if !validatePath(sourcePath, true) {
if !validatePath(sourcePath, false) {
log.Printf("The given source path ('%s') does not exist or is no directory!", sourcePath)

return bkperrors.ErrCannotAccessSrcDir
Expand Down

0 comments on commit 620fd62

Please sign in to comment.