Created
October 24, 2023 18:09
-
-
Save djberg96/954ad61cd63b1d6da552b32bd9fcec5a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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