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

This commit is contained in:
Jose Diaz-Gonzalez
2022-11-25 14:35:14 -05:00
parent 231e562b8d
commit 0857e51c43

View File

@@ -35,8 +35,10 @@ func TriggerCorePostDeploy(appName string) error {
return err
}
if err := os.Remove(existingProcfile); err != nil {
return err
if common.FileExists(existingProcfile) {
if err := os.Remove(existingProcfile); err != nil {
return err
}
}
}