dev-camget: don't pass --blobserver argument if using --shared

Change-Id: I9198c251b34ba06e03c78653eb83772044441c35
This commit is contained in:
Brad Fitzpatrick 2013-01-02 20:46:49 -08:00
parent 1053ea5847
commit 09a636caa8
1 changed files with 7 additions and 2 deletions

View File

@ -35,8 +35,13 @@ if ($opt_tls) {
$blobserver =~ s/^http/https/;
}
my @args;
unless (grep { /^--?shared\b/ } @ARGV) {
push @args, "--blobserver=$blobserver";
}
push @args, @ARGV;
exec("$camget",
"--verbose",
"--blobserver=$blobserver",
@ARGV);
@args);
die "Failure running camget: $!";