Update .local/share/chezmoi/home/dot_local/bin/executable_install-program

This commit is contained in:
Brian Zalewski 2022-12-05 03:39:40 +00:00
parent ea2d4517a8
commit 961bd65734

View file

@ -784,12 +784,17 @@ async function installPackageList(packageManager, packages) {
} }
} else if (packageManager === 'pkg') { } else if (packageManager === 'pkg') {
} else if (packageManager === 'port') { } else if (packageManager === 'port') {
for (let pkg of packages) { const port = which.sync('port', { nothrow: true })
try { if (port) {
await $`sudo port install ${pkg}` for (let pkg of packages) {
} catch(e) { try {
log('error', 'Port Failure', `There was an error installing ${pkg} with port`) await $`sudo port install ${pkg}`
} catch(e) {
log('error', 'Port Failure', `There was an error installing ${pkg} with port`)
}
} }
} else {
log('error', 'Port Not Installed', `Unable to install ${pkg} because port is not installed.`)
} }
} else if (packageManager === 'scoop') { } else if (packageManager === 'scoop') {
for (let pkg of packages) { for (let pkg of packages) {