From 748baf0b3ccc7ba47aa009b0e1ad2ae1116b86eb Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Thu, 16 Feb 2023 06:17:29 +0000 Subject: [PATCH] Update file executable_install-program --- home/dot_local/bin/executable_install-program | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/home/dot_local/bin/executable_install-program b/home/dot_local/bin/executable_install-program index 6856d484..24d42fdd 100644 --- a/home/dot_local/bin/executable_install-program +++ b/home/dot_local/bin/executable_install-program @@ -1595,9 +1595,11 @@ async function pruneInstallOrders(installOrders) { }) } else if (pkgManager === 'brew') { let newVal = newOrders[pkgManager] + const pkgTmp = '/tmp/brew-list-install-doctor' + runCommand(`Populating temporary file with list of Homebrew packages`, `brew list > ${pkgTmp}`) for (const pkg of newOrders[pkgManager]) { try { - await $`brew list | grep '^${pkg}$'` + await $`cat ${pkgTmp} | grep '^${pkg}$'` newVal = newVal.filter((x) => x === pkg) } catch (e) { // Do nothing