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