diff --git a/internal/app/wwctl/overlay/chmod/main.go b/internal/app/wwctl/overlay/chmod/main.go index b6eb4cad..1e95b451 100644 --- a/internal/app/wwctl/overlay/chmod/main.go +++ b/internal/app/wwctl/overlay/chmod/main.go @@ -44,7 +44,7 @@ func CobraRunE(cmd *cobra.Command, args []string) error { overlayFile := path.Join(overlaySourceDir, fileName) - if !util.IsFile(overlayFile) { + if !util.IsFile(overlayFile) && !util.IsDir(overlayFile) { wwlog.Printf(wwlog.ERROR, "File does not exist within overlay: %s:%s\n", overlayName, fileName) os.Exit(1) }