Support elixir branches

This commit is contained in:
Eric Meadows-Jönsson
2019-11-17 23:40:55 +01:00
parent 14bacb3367
commit 71a9eee041
4 changed files with 30 additions and 16 deletions

View File

@@ -12,7 +12,8 @@ module.exports = {installElixir, installOTP}
*/
async function installElixir(version, otpMajor) {
if (process.platform === 'linux') {
await exec(path.join(__dirname, 'install-elixir'), [version, otpMajor])
const otpString = otpMajor ? `-otp-${otpMajor}` : ''
await exec(path.join(__dirname, 'install-elixir'), [version, otpString])
}
}