Skip to content

Commit

Permalink
fix: fix some testing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
hansemannn committed Sep 28, 2024
1 parent 2fb812c commit e1ba42d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/provisioning.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function detect(options, callback) {
profileDirs = getExistingProvisioningProfileDirectories(options.profileDir),
results = {
provisioning: {
profileDir: profileDir,
profileDir: profileDirs[0],
development: [],
adhoc: [],
enterprise: [],
Expand Down Expand Up @@ -253,12 +253,12 @@ function detect(options, callback) {
fs.readdirSync(profileDir).forEach(function (name) {
ppRegExp.test(name) && parseProfile(path.join(profileDir, name));
});
}

detectIssues();
cache = results;
emitter.emit('detected', results);
return callback(null, results);
}
});
};

Expand Down Expand Up @@ -388,6 +388,10 @@ function getExistingProvisioningProfileDirectories(profileDir) {
const profileDirectories = [];

for (const directory of [profileDir, ...provisioningProfilesDirectories]) {
if (!directory) {
continue;
}

const resolvedDirectory = appc.fs.resolvePath(directory);

if (fs.existsSync(resolvedDirectory)) {
Expand Down

0 comments on commit e1ba42d

Please # to comment.