Update file executable_install-program

This commit is contained in:
Brian Zalewski 2023-01-25 06:05:08 +00:00
parent b6f30d19f1
commit 552bed004c

View file

@ -994,14 +994,14 @@ async function ensurePackageManager(packageManager) {
} else if (zypper) {
await $`sudo zypper install -y flatpak`
}
const flatpakPost = which.sync('flatpak', { nothrow: true })
if (flatpakPost) {
await $`sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo`
} else {
log('error', logStage, `\`flatpak\` failed to install!`)
}
log('info', logStage, `\`flatpak\` was installed. It may require a reboot to function correctly.`)
}
const flatpakPost = which.sync('flatpak', { nothrow: true })
if (flatpakPost) {
await $`sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo`
} else {
log('error', logStage, `\`flatpak\` failed to install!`)
}
} else if (packageManager === 'gem') {
const gem = which.sync('gem', { nothrow: true })
if (!gem) {