Update file executable_install-program

This commit is contained in:
Brian Zalewski 2023-01-04 07:05:17 +00:00
parent 7c0c1816e4
commit 29a8c9d235

View file

@ -890,9 +890,15 @@ async function ensurePackageManager(packageManager) {
log('info', logStage, `\`flatpak\` was installed. It may require a reboot to function correctly.`) log('info', logStage, `\`flatpak\` was installed. It may require a reboot to function correctly.`)
} }
} else if (packageManager === 'gem') { } else if (packageManager === 'gem') {
const gem = which.sync('gem', { nothrow: true })
if (!gem) {
await ensureInstalled('gem', $`brew install ruby`) await ensureInstalled('gem', $`brew install ruby`)
}
} else if (packageManager === 'go') { } else if (packageManager === 'go') {
await ensureInstalled('gem', $`brew install go`) const go = which.sync('go', { nothrow: true })
if (!go) {
await ensureInstalled('go', $`brew install go`)
}
} else if (packageManager === 'nix') { } else if (packageManager === 'nix') {
await ensureInstalled( await ensureInstalled(
'nix', 'nix',