fix: ensure the directories are deleted

This commit is contained in:
Jose Diaz-Gonzalez committed 2025-07-23 18:40:43 -04:00
1 parent e0617b209d
commit 04917b72d4
1 file changed
+2 -2
+2 -2
View File
@@ -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
} }
} }