Allow chmod on both file and directory

This commit is contained in:
Gregory Kurtzer
2021-09-13 22:30:49 -07:00
parent 5d425a897f
commit 473ecd7e96

View File

@@ -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)
}