[gcs-util] Add namespace prefix iff not already set
The command-line provided -namespace argument is prepended to all upload
destinations, provided that they aren't deduplicated (they live in a
shared namespace). If the -namespace is already part of the upload
destination, don't prepend it again.
Bug: 92697
Change-Id: Iee24a3d3e31ddd5899c1471bba3210e268676610
Reviewed-on: https://fuchsia-review.googlesource.com/c/infra/infra/+/683783
Reviewed-by: Ina Huh <ihuh@google.com>
Commit-Queue: Anthony Fandrianto <atyfto@google.com>
Reviewed-by: Oliver Newman <olivernewman@google.com>
2 files changed