Created
May 12, 2025 19:44
-
-
Save sumeet/5834eb486ef4de6c8243774a0af96e0d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/env ruby | |
OUTDIR="/var/cache/pacman/pkg" | |
threads = ARGV.flat_map do |arg| | |
[Thread.new { system "sudo curl -L -O --output-dir #{OUTDIR} https://archive.archlinux.org/.all/#{arg}" }, | |
Thread.new { system "sudo curl -L -O --output-dir #{OUTDIR} https://archive.archlinux.org/.all/#{arg}.sig" }] | |
end | |
threads.each(&:join) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment