Update file executable_install-program

This commit is contained in:
Brian Zalewski 2023-01-05 07:24:36 +00:00
parent f96b66a11f
commit 6fdd99dc30

View file

@ -623,10 +623,7 @@ async function beforeInstall(packageManager) {
} else if (packageManager === 'apk') {
await $`sudo apk update`
} else if (packageManager === 'apt') {
runCommand('Running apt-get update', `sudo apt-get update`)
if (fileExists('/var/lib/apt/lists/lock')) {
runCommand('Removing /var/lib/apt/lists/lock', `sudo rm /var/lib/apt/lists/lock`)
}
runCommand('Running apt-get update / upgrade', `sudo apt-get update && sudo apt-get upgrade -y`)
} else if (packageManager === 'basher') {
} else if (packageManager === 'binary') {
} else if (packageManager === 'brew' || packageManager === 'cask') {