Skip to content

Commit

Permalink
fix: Join array items properly (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach authored Mar 27, 2023
1 parent 10fa3f2 commit 02f7bbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/xcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async function getPathFromXcodeSelect (timeout = XCRUN_TIMEOUT) {

const proposals = xcodePaths.map((p) => ` sudo xcode-select -s "${path.join(p, 'Contents', 'Developer')}"`);
return `${prefix}. ` +
`Consider running${proposals.length > 1 ? ' any of' : ''}:\n${'\n'.join(proposals)}\nto address this issue.`;
`Consider running${proposals.length > 1 ? ' any of' : ''}:\n${proposals.join('\n')}\nto address this issue.`;
};

let stdout;
Expand Down

0 comments on commit 02f7bbf

Please sign in to comment.