Skip to content

Commit

Permalink
scan: exclude non-regular file (e.g symbolic link)
Browse files Browse the repository at this point in the history
  • Loading branch information
ydesmarest committed Sep 18, 2017
1 parent 78241a9 commit 0d03cb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func scanDir(dir string, excl []string, f5Client *f5.Client) error {
}
var totalChanges int
for _, fi := range fis {
if fi.IsDir() || isExcluded(fi.Name(), excl) {
if fi.IsDir() || !fi.Mode().IsRegular() || isExcluded(fi.Name(), excl) {
continue
}
path := filepath.Join(dir, fi.Name())
Expand Down

0 comments on commit 0d03cb0

Please sign in to comment.