Skip to content

Instantly share code, notes, and snippets.

@djberg96
Created October 24, 2023 18:09
Show Gist options
  • Save djberg96/954ad61cd63b1d6da552b32bd9fcec5a to your computer and use it in GitHub Desktop.
Save djberg96/954ad61cd63b1d6da552b32bd9fcec5a to your computer and use it in GitHub Desktop.
require 'thread'
require 'thwait'
a = []
Dir["font-z*.rb"].each do |file|
next if file == __FILE__
next if file =~ /pixel/
font = File.basename(file, '.rb')
puts font
a << Thread.new{
system("brew install #{font} --cask --quiet")
sleep 0.1
}
end
#a.join
ThreadsWait.all_waits(*a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment