show which packages where uninstalled

This commit is contained in:
2020-11-07 13:11:11 +01:00
parent e3fc8e5fdb
commit 485305c75d

View File

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