Skip to content

Commit

Permalink
Merge pull request tkyaji#73 from axelcostaspena/master
Browse files Browse the repository at this point in the history
Fix cyphering process crashing
  • Loading branch information
tkyaji authored Nov 3, 2018
2 parents 03a57e7 + 7b6d253 commit ddee9df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/after_prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = function(context) {
var wwwDir = platformInfo.locations.www;

findCryptFiles(wwwDir).filter(function(file) {
return isCryptFile(file.replace(wwwDir, ''));
return fs.statSync(file).isFile() && isCryptFile(file.replace(wwwDir, ''));
}).forEach(function(file) {
var content = fs.readFileSync(file, 'utf-8');
fs.writeFileSync(file, encryptData(content, key, iv), 'utf-8');
Expand Down

0 comments on commit ddee9df

Please sign in to comment.