Skip to content

Commit

Permalink
fix(generator): Fix ENOENT when using fs.chmod() on templated cordova…
Browse files Browse the repository at this point in the history
… hook
  • Loading branch information
diegonetto committed Aug 19, 2014
1 parent b61120a commit 2ac2b55
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ IonicGenerator.prototype.packageFiles = function packageFiles() {
IonicGenerator.prototype.cordovaHooks = function cordovaHooks() {
var iconsAndSplash = 'hooks/after_prepare/icons_and_splashscreens.js';
this.template(iconsAndSplash);
};

IonicGenerator.prototype.hookPerms = function hookPerms() {
var iconsAndSplash = 'hooks/after_prepare/icons_and_splashscreens.js';
fs.chmodSync(iconsAndSplash, '755');
};

Expand Down

0 comments on commit 2ac2b55

Please sign in to comment.