blob: 66848b5ed25d683ca6884937a82916e5cf23e771 [file] [log] [blame]
#!/bin/bash
# Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
# 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