fix: ensure the directories are deleted
This commit is contained in:
1 file changed
+2
-2
@@ -42,12 +42,12 @@ func TriggerCorePostDeploy(appName string) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
} else if common.FileExists(fmt.Sprintf("%s.missing", processSpecificKustomizeRootPath)) {
|
} else if common.FileExists(fmt.Sprintf("%s.missing", processSpecificKustomizeRootPath)) {
|
||||||
if err := os.Remove(fmt.Sprintf("%s.missing", processSpecificKustomizeRootPath)); err != nil {
|
if err := os.RemoveAll(fmt.Sprintf("%s.missing", processSpecificKustomizeRootPath)); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if common.DirectoryExists(existingKustomizeRootPath) {
|
if common.DirectoryExists(existingKustomizeRootPath) {
|
||||||
if err := os.Remove(existingKustomizeRootPath); err != nil {
|
if err := os.RemoveAll(existingKustomizeRootPath); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user