From 09a636caa88500169ae04e959742e10c925eabda Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Wed, 2 Jan 2013 20:46:49 -0800 Subject: [PATCH] dev-camget: don't pass --blobserver argument if using --shared Change-Id: I9198c251b34ba06e03c78653eb83772044441c35 --- dev-camget | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dev-camget b/dev-camget index 94f8b98fe..0303c238d 100755 --- a/dev-camget +++ b/dev-camget @@ -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: $!";