Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
Check if the ios/platforms exists before trying to stat it
Browse files Browse the repository at this point in the history
  • Loading branch information
PanayotCankov committed Nov 22, 2016
1 parent 0713dce commit f9d152a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/install_ios_entitlements.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var xcode = require('xcode'),
path = require('path'),
pjson = eval('require(\'../../package.json\')'),
iosFolder = path.join('platforms', 'ios'),
data = fs.readdirSync(iosFolder),
data = fs.existsSync(iosFolder) && fs.readdirSync(iosFolder),
projFolder,
projName;

Expand Down
2 changes: 1 addition & 1 deletion scripts/install_ios_entitlements_packed.js
Original file line number Diff line number Diff line change
Expand Up @@ -3706,7 +3706,7 @@ var xcode = __webpack_require__(/*! xcode */ 5),
path = __webpack_require__(/*! path */ 0),
pjson = eval('require(\'../../package.json\')'),
iosFolder = path.join('platforms', 'ios'),
data = fs.readdirSync(iosFolder),
data = fs.existsSync(iosFolder) && fs.readdirSync(iosFolder),
projFolder,
projName;

Expand Down

0 comments on commit f9d152a

Please sign in to comment.