From b2ec1d1177f62f9a6e2438c62ff85179dfe3ce8d Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Thu, 5 Jan 2023 03:49:32 +0000 Subject: [PATCH] Update file executable_install-program --- home/dot_local/bin/executable_install-program | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/home/dot_local/bin/executable_install-program b/home/dot_local/bin/executable_install-program index 0d46ceb3..9adb7691 100644 --- a/home/dot_local/bin/executable_install-program +++ b/home/dot_local/bin/executable_install-program @@ -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