Update file executable_install-program
This commit is contained in:
parent
c4b5fe8320
commit
c6554ee965
1 changed files with 5 additions and 5 deletions
|
@ -457,8 +457,8 @@ async function afterInstall(packageManager) {
|
||||||
} else if (packageManager === 'apk') {
|
} else if (packageManager === 'apk') {
|
||||||
} else if (packageManager === 'apt') {
|
} else if (packageManager === 'apt') {
|
||||||
try {
|
try {
|
||||||
await $`sudo apt-get autoclean`
|
await $`sudo apt autoclean`
|
||||||
await $`sudo apt-get autoremove`
|
await $`sudo apt autoremove`
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
log('error', logStage, 'Error cleaning up apt')
|
log('error', logStage, 'Error cleaning up apt')
|
||||||
}
|
}
|
||||||
|
@ -504,7 +504,7 @@ async function ensurePackage(dep) {
|
||||||
if (updateDone[packageManager] !== true) {
|
if (updateDone[packageManager] !== true) {
|
||||||
await beforeInstall('apt-get')
|
await beforeInstall('apt-get')
|
||||||
}
|
}
|
||||||
await $`sudo apt-get install -y ${dep}`
|
await $`sudo apt install -y ${dep}`
|
||||||
} else if (dnf) {
|
} else if (dnf) {
|
||||||
if (updateDone[packageManager] !== true) {
|
if (updateDone[packageManager] !== true) {
|
||||||
await beforeInstall('dnf')
|
await beforeInstall('dnf')
|
||||||
|
@ -559,7 +559,7 @@ async function beforeInstall(packageManager) {
|
||||||
} else if (packageManager === 'apk') {
|
} else if (packageManager === 'apk') {
|
||||||
await $`sudo apk update`
|
await $`sudo apk update`
|
||||||
} else if (packageManager === 'apt') {
|
} else if (packageManager === 'apt') {
|
||||||
await $`sudo apt-get update`
|
await $`sudo apt update`
|
||||||
} else if (packageManager === 'basher') {
|
} else if (packageManager === 'basher') {
|
||||||
} else if (packageManager === 'binary') {
|
} else if (packageManager === 'binary') {
|
||||||
} else if (packageManager === 'brew' || packageManager === 'cask') {
|
} else if (packageManager === 'brew' || packageManager === 'cask') {
|
||||||
|
@ -1032,7 +1032,7 @@ async function installPackageList(packageManager, packages) {
|
||||||
} else if (packageManager === 'apt') {
|
} else if (packageManager === 'apt') {
|
||||||
for (let pkg of packages) {
|
for (let pkg of packages) {
|
||||||
try {
|
try {
|
||||||
await $`sudo unbuffer apt-get install -y ${pkg}`
|
await $`sudo apt install -y ${pkg}`
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
log('error', 'apt-get Failure', `There was an error installing ${pkg} with apt-get`)
|
log('error', 'apt-get Failure', `There was an error installing ${pkg} with apt-get`)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue