Skip to content

Instantly share code, notes, and snippets.

@Cside
Created April 18, 2012 06:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Cside/2411403 to your computer and use it in GitHub Desktop.
Save Cside/2411403 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
use strict;
use warnings;
my ($repo_url, $to) = @ARGV;
#my $repo_url = 'git://github.com/gmarik/vundle.git';
$repo_url || exit;
$repo_url =~ s/^git/https/;
$repo_url .= '.git' unless $repo_url =~ /\.git$/;
use File::Basename qw(basename);
my $basename = basename($repo_url);
my ($id) = $repo_url =~ m#github\.com/(.+)\.git#;
system('wget --no-check-certificate https://github.com/' . $id . "/zipball/maste
#system("unzip $basename");
#unlink $basename;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment