Skip to content

Commit

Permalink
Make double mount a TODO
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Nola <[email protected]>
  • Loading branch information
dereknola committed Mar 13, 2024
1 parent 5e5ae82 commit b8ed48b
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions pkg/staticpod/staticpod.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,7 @@ func Run(dir string, args Args) error {
return err
}

// Check to make sure we aren't double mounting directories and the files in those directories
for _, dir := range args.Dirs {
for _, file := range files {
if strings.HasPrefix(file, dir) {
logrus.Warnf("file %s is being double mounted with directory %s", file, dir)
}
}
}
// TODO Check to make sure we aren't double mounting directories and the files in those directories

args.Files = append(args.Files, files...)
pod, err := pod(args)
Expand Down

0 comments on commit b8ed48b

Please sign in to comment.