show which packages where uninstalled

This commit is contained in:
cupcakearmy 2020-11-07 13:11:11 +01:00
parent e3fc8e5fdb
commit 485305c75d
No known key found for this signature in database
GPG Key ID: D28129AE5654D9D9
1 changed files with 3 additions and 0 deletions

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