diff --git a/home/dot_local/bin/executable_install-program b/home/dot_local/bin/executable_install-program index 06b8da1b..80a6520d 100644 --- a/home/dot_local/bin/executable_install-program +++ b/home/dot_local/bin/executable_install-program @@ -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) {