Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #22714 from yurenju/camera-config-2
Browse files Browse the repository at this point in the history
Bug 1036830 - build failed if camera-config.js in distribution directory doesn't exist r=gduan
  • Loading branch information
yurenju committed Aug 12, 2014
2 parents a677b3a + d7ae037 commit 68bd689
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/camera/build/build.js
Expand Up @@ -19,7 +19,9 @@ function copyUserConfig(options) {
if (options.GAIA_DISTRIBUTION_DIR) {
var distConfig = utils.getFile(options.GAIA_DISTRIBUTION_DIR,
'camera-config.js');
utils.copyFileTo(distConfig, parent, filename, true);
if (distConfig.exists()) {
utils.copyFileTo(distConfig, parent, filename, true);
}
}
}

Expand Down

0 comments on commit 68bd689

Please sign in to comment.