Update file executable_install-program

This commit is contained in:
Brian Zalewski 2022-12-25 10:06:51 +00:00
parent 71b1ccec3f
commit c0dbf13b8b

View file

@ -1183,7 +1183,7 @@ async function installPackageList(packageManager, packages) {
for (let pkg of packages) { for (let pkg of packages) {
// TODO _snapClassic // TODO _snapClassic
try { try {
await $`sudo snap install -y ${pkg}` await $`sudo snap install ${pkg}`
} catch (e) { } catch (e) {
log('error', 'Snap Failure', `There was an error installing ${pkg} with snap`) log('error', 'Snap Failure', `There was an error installing ${pkg} with snap`)
} }
@ -1199,7 +1199,7 @@ async function installPackageList(packageManager, packages) {
} else if (packageManager === 'snap-classic') { } else if (packageManager === 'snap-classic') {
for (let pkg of packages) { for (let pkg of packages) {
try { try {
await $`sudo snap install --classic -y ${pkg}` await $`sudo snap install --classic ${pkg}`
} catch (e) { } catch (e) {
log('error', 'Snap Failure', `There was an error installing ${pkg} with snap in classic mode`) log('error', 'Snap Failure', `There was an error installing ${pkg} with snap in classic mode`)
} }