From 4250f4d22063fa9ec9feb2c1ae909cebc8bbf795 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Wed, 1 Feb 2023 06:31:07 +0000 Subject: [PATCH] Update file executable_install-program --- home/dot_local/bin/executable_install-program | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/home/dot_local/bin/executable_install-program b/home/dot_local/bin/executable_install-program index 2ec2114a..0fa744bd 100644 --- a/home/dot_local/bin/executable_install-program +++ b/home/dot_local/bin/executable_install-program @@ -91,7 +91,9 @@ function wrapMessage(msg) { function runCommand(spinnerTitle, command) { execSync(command.includes('sudo') ? `sudo "$(which gum)" spin --spinner dot --title "${spinnerTitle}" -- ${command}` : `gum spin --spinner dot --title "${spinnerTitle}" -- ${command}`, { stdio: 'inherit', - shell: true + shell: true, + // Timeout of 10m + timeout: 1000 * 60 * 10 }) } @@ -752,7 +754,9 @@ async function beforeInstall(packageManager) { runCommand('Running yum update', `sudo yum update -y`) } } else if (packageManager === 'flatpak') { - runCommand('Running flatpak update', `sudo flatpak update -y`) + // Issues with Flatpak not downloading updates on CentOS so reverting to ZX way of doing things so stdout can do its thing + // runCommand('Running flatpak update', `timeout 600 sudo flatpak update -y`) + await $`sudo flatpak update -y` } else if (packageManager === 'gem') { } else if (packageManager === 'go') { } else if (packageManager === 'nix') {