fix: ensure the directories are deleted

This commit is contained in:
Jose Diaz-Gonzalez
2025-07-19 00:13:38 -04:00
parent e0617b209d
commit 04917b72d4

View File

@@ -42,12 +42,12 @@ func TriggerCorePostDeploy(appName string) error {
return err
}
} 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
}
if common.DirectoryExists(existingKustomizeRootPath) {
if err := os.Remove(existingKustomizeRootPath); err != nil {
if err := os.RemoveAll(existingKustomizeRootPath); err != nil {
return err
}
}