Closed nitrocode closed 5 years ago
That's cool but writing the explicit for loop allows me to traverse the list backwards which comes in handy because I want to uninstall formulas in the order reverse to which they were installed.
This is nice because, if the list of formulas is written such that any formula's dependencies come before it, the formulas can be correctly and safely uninstalled by first uninstalling their dependencies.
Love your script. Thought I'd share this too.
You can replace the
linuxify_formulas
and the for loop inlinuxify_install
with the followingBrewfile
:and with the following line
brew install
and it should pick up theBrewfile
correctly