Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up scripts to require a minimal gsutil version. #1414

Merged
merged 1 commit into from
Sep 25, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions hack/dev-build-and-up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
# This script will build a dev release and bring up a new cluster with that
# release.

set -e

# First build the binaries
$(dirname $0)/build-go.sh
if [ "$?" != "0" ]; then
Expand Down
10 changes: 10 additions & 0 deletions release/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@
# exit on any error
set -e

gsutil_version=$(gsutil version | awk '{split($0,a," "); print a[3]}')

# Warning! uses lexical comparison. This really only works for major versions, or minor versions up to x.9
min_gsutil_version="4.0"

if [[ "$gsutil_version" < "$min_gsutil_version" ]]; then
echo "gsutil version $min_gsutil_version or greater is required, please run 'gcloud components upgrade'"
exit 1
fi

SCRIPT_DIR=$(CDPATH="" cd $(dirname $0); pwd)

source $SCRIPT_DIR/config.sh
Expand Down