Skip to content

Commit

Permalink
fix(cli): Avoid AndroidManifest.xml not found error on add (#2400)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Feb 4, 2020
1 parent cf2f746 commit 120969c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cli/src/cordova.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,9 @@ ${applicationXMLEntries.join('\n')}
${rootXMLEntries.join('\n')}
</manifest>`;
content = content.replace(new RegExp(('$PACKAGE_NAME').replace('$', '\\$&'), 'g'), config.app.appId);
await writeFileAsync(manifestPath, content);
if (existsSync(manifestPath)) {
await writeFileAsync(manifestPath, content);
}
}

function getPathParts(path: string) {
Expand Down

0 comments on commit 120969c

Please sign in to comment.