mirror of
https://github.com/cupcakearmy/unbrew.git
synced 2024-12-22 16:16:26 +00:00
show which packages where uninstalled
This commit is contained in:
parent
e3fc8e5fdb
commit
485305c75d
@ -60,11 +60,14 @@ async function main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
console.log('🗑 Uninstalling')
|
console.log('🗑 Uninstalling')
|
||||||
|
const allLoosers = []
|
||||||
while (loosers.length) {
|
while (loosers.length) {
|
||||||
|
allLoosers.push(...loosers)
|
||||||
const joinedLoosers = loosers.join(' ')
|
const joinedLoosers = loosers.join(' ')
|
||||||
cp.execSync(`brew uninstall ${joinedLoosers}`)
|
cp.execSync(`brew uninstall ${joinedLoosers}`)
|
||||||
loosers = getLoosers(keepers)
|
loosers = getLoosers(keepers)
|
||||||
}
|
}
|
||||||
|
console.log('✅ Uninstalled: ' + allLoosers.join(', '))
|
||||||
|
|
||||||
console.log('🧽 Cleaning up')
|
console.log('🧽 Cleaning up')
|
||||||
cp.execSync(`brew cleanup`)
|
cp.execSync(`brew cleanup`)
|
||||||
|
Loading…
Reference in New Issue
Block a user