fix: do not delete the existing procfile if it does not exist

This commit is contained in:
Jose Diaz-Gonzalez committed 2022-11-25 14:50:35 -05:00
1 parent 231e562b8d
commit 0857e51c43
1 file changed
+4 -2
+4 -2
View File
@@ -35,8 +35,10 @@ func TriggerCorePostDeploy(appName string) error {
return err return err
} }
if err := os.Remove(existingProcfile); err != nil { if common.FileExists(existingProcfile) {
return err if err := os.Remove(existingProcfile); err != nil {
return err
}
} }
} }