From 485305c75d2d2f5a08c691038298d3685b6e2e91 Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Sat, 7 Nov 2020 13:11:11 +0100 Subject: [PATCH] show which packages where uninstalled --- bin/unbrew.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/unbrew.js b/bin/unbrew.js index 0d6fe05..f3f417a 100755 --- a/bin/unbrew.js +++ b/bin/unbrew.js @@ -60,11 +60,14 @@ async function main() { } console.log('🗑 Uninstalling') + const allLoosers = [] while (loosers.length) { + allLoosers.push(...loosers) const joinedLoosers = loosers.join(' ') cp.execSync(`brew uninstall ${joinedLoosers}`) loosers = getLoosers(keepers) } + console.log('✅ Uninstalled: ' + allLoosers.join(', ')) console.log('🧽 Cleaning up') cp.execSync(`brew cleanup`)