Last bit of updates for basic overlay support

This commit is contained in:
Gregory Kurtzer
2020-11-18 20:37:18 -08:00
parent 27441f77d3
commit 0bc53ea483
6 changed files with 145 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
for i := 1; i < len(args); i++ {
removePath := path.Join(overlayPath, args[i])
if util.IsDir(removePath) == true || util.IsFile(removePath) == true {
if util.IsDir(removePath) == false && util.IsFile(removePath) == false {
wwlog.Printf(wwlog.ERROR, "Path to remove doesn't exist in overlay: %s\n", removePath)
os.Exit(1)
}