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`)