Update file executable_install-program

This commit is contained in:
Brian Zalewski 2023-01-05 03:49:32 +00:00
parent b4faaa8168
commit b2ec1d1177

View file

@ -1352,7 +1352,9 @@ async function pruneInstallOrders(installOrders) {
} else if (pkgManager === 'brew') {
newOrders[pkgManager] = await asyncFilter(newOrders[pkgManager], async (pkg) => {
try {
log('info', 'Detecting Brew Package', `Checking for presence of ${pkg} with Homebrew`)
await $`brew list ${pkg} > /dev/null`
log('info', 'Brew Package', `${pkg} is present`)
return true
} catch (e) {
return false
@ -1361,7 +1363,9 @@ async function pruneInstallOrders(installOrders) {
/*let newVal = newOrders[pkgManager]
for (const pkg of newOrders[pkgManager]) {
try {
log('info', 'Test', 'Listing..')
await $`brew list ${pkg}`
log('info)
newVal = newVal.filter(x => x === pkg)
} catch (e) {
// Do nothing