mirror of
https://github.com/cupcakearmy/unbrew.git
synced 2025-01-02 21:26:24 +00:00
moved to bin
This commit is contained in:
parent
c9302eef75
commit
4508881066
14
src/index.js → bin/unbrew.js
Normal file → Executable file
14
src/index.js → bin/unbrew.js
Normal file → Executable file
@ -1,3 +1,5 @@
|
|||||||
|
#!/usr/bin/env node
|
||||||
|
|
||||||
const cp = require('child_process')
|
const cp = require('child_process')
|
||||||
const chalk = require('chalk')
|
const chalk = require('chalk')
|
||||||
|
|
||||||
@ -40,13 +42,13 @@ async function main() {
|
|||||||
])
|
])
|
||||||
|
|
||||||
console.log('🗑 Uninstalling:', chalk.bold.blue(getLoosers(keepers).join(' ')))
|
console.log('🗑 Uninstalling:', chalk.bold.blue(getLoosers(keepers).join(' ')))
|
||||||
// while (true) {
|
while (true) {
|
||||||
// const loosers = getLoosers(keepers)
|
const loosers = getLoosers(keepers)
|
||||||
// if (!loosers.length) break
|
if (!loosers.length) break
|
||||||
|
|
||||||
// const joinedLoosers = loosers.join(' ')
|
const joinedLoosers = loosers.join(' ')
|
||||||
// cp.execSync(`brew uninstall ${joinedLoosers}`)
|
cp.execSync(`brew uninstall ${joinedLoosers}`)
|
||||||
// }
|
}
|
||||||
console.log('🧽 Cleaning up')
|
console.log('🧽 Cleaning up')
|
||||||
cp.execSync(`brew cleanup`)
|
cp.execSync(`brew cleanup`)
|
||||||
console.log(chalk.bold.green('🚀 Done'))
|
console.log(chalk.bold.green('🚀 Done'))
|
Loading…
Reference in New Issue
Block a user