mirror of https://github.com/bjeanes/dotfiles.git
12 lines
291 B
Plaintext
12 lines
291 B
Plaintext
|
#!/usr/bin/env ruby
|
||
|
|
||
|
command = ARGV.shift
|
||
|
|
||
|
case command
|
||
|
when /^git(@|:\/\/).*\.git$/
|
||
|
system("git clone #{command.inspect}")
|
||
|
when /^(?:ftp|https?):\/\/.+\.t(?:ar\.)?gz$/
|
||
|
system("curl #{command.inspect} | tar xzv")
|
||
|
else
|
||
|
$stderr.puts "No default action defined in #{__FILE__.inspect}"
|
||
|
end
|