Update file executable_install-program
This commit is contained in:
parent
b4faaa8168
commit
b2ec1d1177
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue