blob: 14f11394a84449b18ac76d7ac2bd615bc583bf77 [file] [log] [blame]
#!/bin/bash
# Copyright 2014 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
CWD="$(dirname "$(readlink -f "$0")")"
. "${CWD}/bundle_common"
# There should be a bundle path as the argument.
[[ "$#" -eq 1 ]] || die
# Check the existence of the bundle and update LATEST if it is a wbs package.
bundle_path=$1
check_bundle
# Upload the bundle to Google cloud storage and enable public-read access.
upload_bundle
# Update the cloud LATEST file pointing to the bundle and enable public-read
# access.
update_cloud_LATEST